Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: johnx on October 18, 2010, 07:50:17 AM

Title: how to add props and vehicals on gups 1.16 a
Post by: johnx on October 18, 2010, 07:50:17 AM
can any one help me plz that how to add props are vehicals in vcmp server in gups  iam using gups 1.16a but i dont know how to add props plz help me...or tell me other scripts for vcmp 0.3zr2 where can i get props and iam using 0.3zr2 ok
Title: Re: how to add props and vehicals on gups 1.16 a
Post by: Terminatorupgrade 2 on November 01, 2010, 10:50:31 AM
i have that problem tooo
/c addprop  is not working in pawno here is the script

   
Quoteelse if (strcmp(cmd, "addprop", true) == 0) {
       new name[500];
        tmp = strtok(cmdtext, idx), name = strtok(cmdtext, idx);
      if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
      else if(!IsPlayerCommandLevel(playerid,"addprop")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
      else if (!strlen(name)) SendClientMessage(playerid,COLOR_GREEN, "USAGE: /c addprop [Price] [Name]");
      else {
         new Float:X,Float:Y,Float:Z, szMsg[256];
         GetPlayerPos(playerid,X,Y,Z);
         AddStaticPickup(1,407,X,Y,Z);
         format(szMsg,sizeof(szMsg),"Property added! Price:[ $%s ] Name:[ %s ]",tmp,name);
         SendClientMessage(playerid, COLOR_GREEN, szMsg);
any one can fix it?
Title: Re: how to add props and vehicals on gups 1.16 a
Post by: Robd on November 05, 2010, 10:43:34 PM
you can add them manualy through ini files in scriptfiles directory
Title: Re: how to add props and vehicals on gups 1.16 a
Post by: Terminatorupgrade 2 on November 06, 2010, 12:32:21 PM
any idea or you can send us config.ini file for an example
Title: Re: how to add props and vehicals on gups 1.16 a
Post by: Robd on November 07, 2010, 12:27:49 AM
From list.ini
158=223 -810.704467773438 -212.029327392578 6.99906158447266 0 84 84//underground
158=carid
223=car model
-810.704467773438 -212.029327392578 6.99906158447266=x,y,z coordinates
0=rotation
//underground=note
the // wont be seen in game at all its just so you can identify it in a way you would recognize
just insert the information in that order and you have your car added to the list
From owners.ini
158=Robd
Thats just lets you know who owns the car
im pretty sure u have to have an owner for each id but im not sure
From prices.ini
158=100000
Same thing as owner.ini
From Share.ini
158=Robd
same as owners :) :) :) :) :) :)

that just about covers cars
ill add something about props when i get a chance
Title: Re: how to add props and vehicals on gups 1.16 a
Post by: Terminatorupgrade 2 on November 07, 2010, 11:23:56 AM
i mean Props
Title: Re: how to add props and vehicals on gups 1.16 a
Post by: Robd on November 24, 2010, 06:38:11 PM
you must do basicaly the same thing

goto /scriptfiles/properties

for names.ini

1=<name>
2=<name>
etc.

for owners.ini

1=<owner>
2=<owner>
etc.

they're all the same in that directory
be sure to match the ids for each property
so if you want a mansion do this

asuming u only have the default chery popers this will be id 2
so

names.ini
2=mansion

owners.ini
2=mansionowner
not 2=cherry popers owner

make sense?

Title: Re: how to add props and vehicals on gups 1.16 a
Post by: Terminatorupgrade 2 on November 25, 2010, 09:58:09 PM
Quotemake sense?
NO 8)
Title: Re: how to add props and vehicals on gups 1.16 a
Post by: Robd on December 13, 2010, 09:20:38 PM
Just replace the information in <> with what you want. I can't really make it much simpler then that.