29.07.2014, 17:36
I have created a special /addcar command for you:
Not tested, I hope that you will try my command as well.
Any feedback would be appreciated!
pawn Код:
CMD:addcar(playerid, params[])
{
new id, string[50], Float:X, Float:Y, Float:Z, Float:FA;
if(sscanf(params,"i", id)) return SendClientMessage(playerid, -1, "/addcar [carid]");
if(id < 400 || id > 611) return SendClientMessage(playerid, -1, "Car IDs cannot be more than 611 or less than 400.");
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, FA);
CreateVehicle(id, X, Y, Z, FA, 0, 0, -1);
format(string,sizeof(string), "You have successfully spawned a car with the type (%i).", id);
SendClientMessage(playerid, -1, string);
return 1;
}
Any feedback would be appreciated!