Help with making a /park command
#7

kabamm
pawn Код:
new pName[MAX_PLAYER_NAME], Float:x, Float:y, Float:z, Float:angle, model, color1, color2, vid, string[256]; //256 only because this is long.
vid = GetPlayerVehicleID(playerid);
model = GetVehicleModel(vid);
GetPlayerName(playerid, pName, sizeof(pName))
GetVehiclePos(vid, x, y, z);
GetVehicleZAngle(vid, angle);
//you can't get vehicle colors so, i will just set those to -1
format(string, sizeof(string), "{%s::%i:-1:-1:%f:%f:%f:%f}", pName, model, x, y, z, angle);
there is the string, do what you want with it
Reply


Messages In This Thread
Help with making a /park command - by Ed2ka49 - 16.02.2009, 19:57
Re: Help with making a /park command - by MenaceX^ - 16.02.2009, 20:20
Re: Help with making a /park command - by Ed2ka49 - 16.02.2009, 20:27
Re: Help with making a /park command - by Daren_Jacobson - 16.02.2009, 20:29
Re: Help with making a /park command - by Ed2ka49 - 16.02.2009, 20:32
Re: Help with making a /park command - by Joe Staff - 16.02.2009, 20:35
Re: Help with making a /park command - by Daren_Jacobson - 16.02.2009, 20:44
Re: Help with making a /park command - by Joe Staff - 16.02.2009, 21:05
Re: Help with making a /park command - by Ed2ka49 - 17.02.2009, 19:59
Re: Help with making a /park command - by Daren_Jacobson - 18.02.2009, 01:31

Forum Jump:


Users browsing this thread: 2 Guest(s)