17.07.2011, 18:49
pawn Код:
CMD:car(playerid, params[])
{
new string[128];
new object;
string = strtok(params, idx);
if(!strlen(string))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /car [carid]");
return 1;
}
object = strval(string);
new Float:playerx, Float:playery, Float:playerz;
GetPlayerPos(playerid, playerx, playery, playerz);
CreateVehicle(object, playerx, playery, playerz, 0, 0, 0, 60000);
return 1;
}