28.10.2013, 22:00
pawn Код:
COMMAND:resetarveiculos(playerid, params[])
{
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][pAdmin] >= 3)
{
new StringHiu[100];
format(StringHiu,100,"{a9c4e4}O Administrador %s resetou veiculos",NomePlayer(playerid));
SendClientMessageToAll(0x00FF00FF, StringHiu);
for(new i=0; i<MAX_VEHICLES; i++)
{
#define VehicleOccupied(i)
{
SetVehicleToRespawn(i);
}
}
}
else return SendClientMessage(playerid,0x00FF00FF, "Opa amigгo vocк nгo й um admin nivel 3!");
}
return 1;
}
stock NomePlayer(playerid)
{
new Nominho[30];
GetPlayerName(playerid, Nominho, 30);
return Nominho;
}