19.07.2013, 11:47
pawn Код:
COMMAND:rc(playerid, params[])
{
SendAdminText(playerid, "/rc", params);
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][PlayerLevel] >= 5)
{
SendClientMessageToAll(0x00FF00FF, "Todos os veнculos foram resetados pelo admin");
for(new i=0; i<MAX_VEHICLES; i++)
{
{
if(!IsPlayerInAnyVehicle(i))
{
SetVehicleToRespawn(i);
}
}
}
else return 0;
}
else return 0;
return 1;
}