22.04.2009, 12:43
pawn Код:
if(!strcmp(cmd,"/changeplate",true))
{
new string[64];
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid,0xFFFFFFAA,"You are not authorized to use this command.");
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid,0xFFFFFFAA,"You have to be inside a vehicle.");
if(cmdtext[idx++] != 32 || cmdtext[idx] == EOS)
return SendClientMessage(playerid,0xFFFFFFAA,"USAGE: /changeplate [newplate]");
format(string,sizeof(string),"%s",cmdtext[idx]);
return SetVehicleNumberPlate(GetPlayerVehicleID(playerid),string);
}