Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: johnx on October 18, 2010, 08: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
-
i have that problem tooo
/c addprop is not working in pawno here is the script
else 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?
-
you can add them manualy through ini files in scriptfiles directory
-
any idea or you can send us config.ini file for an example
-
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
-
i mean Props
-
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?
-
make sense?
NO 8)
-
Just replace the information in <> with what you want. I can't really make it much simpler then that.