03.11.2011, 14:24
pawn Код:
OnPlayerCommandText(playerid, cmdtext[]) {
if(strcmp(cmd, "/cheetah", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "ERROR:You are already in a vehicle");
else
{
SendClientMessage(playerid, COLOR_GREEN, "Cheetah has been spawnt");
new Float:x,Float:y,Float:x, Float:angle;
GetPlayerPos(playerid, x,y,z);
CreateVehicle(415,x,y,z,angle);
}
return 1;
}

