20.06.2014, 18:05
pawn Код:
CMD:respawn(playerid, params[])
{
SendAdminText(playerid, "/respawn", params);
if(APlayerData[playerid][PlayerLevel] >= 4)
{
new str[128], AdminName[24];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(str, sizeof(str), "{a9c4e4}Administrador {FFFFFF}%s {a9c4e4}respawnou todos os veiculos desoucupados!", AdminName);
SendClientMessageToAll(-1, str);
for(new i; i < MAX_VEHICLES; i++)
if(!IsVehicleInUse(i))
SetVehicleToRespawn(i);
}
else
SendClientMessage(playerid, -1, "{ff0000}Vocк nгo tem permissгo para usar este comando!");
return true;
}