12.03.2011, 20:03
pawn Код:
if(strcmp(cmd, "/respawncarros", true) == 0 || strcmp(cmd, "/rc", true) == 0)
{
new playername[MAX_PLAYER_NAME];
new string[128];
if(IsPlayerConnected(playerid))
{
if( PlayerInfo[playerid][PlayerAdmin] == 0) return SendClientMessage(playerid,COLOR_RED, "Vocк nгo й Administrador!");
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "Todos os veнculos foram respawnados by: {FFFFFF}%s{FF0000}.", playername);
SendClientMessageToAll(COLOR_RED,string);
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
SetVehicleToRespawn(i);
}
}
}
return 1;
}