16.02.2009, 20:44
kabamm
there is the string, do what you want with it
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);