pawn Код:
if(strcmp(cmd, "/rv", true) == 0)
{
new ptname[MAX_PLAYER_NAME];
GetPlayerName(playerid, ptname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, ptname);
if(pAdmin[playerid] > 0)
{
for(new v = 0; v < MAX_VEHICLES; v++)
{
if(!IsVehicleOccupied(v)) SetVehicleToRespawn(v);
}
SendClientMessage(playerid, Verde, "Veнculos desocupados respawnados!");
format(string, sizeof(string), "O(A) ADM %s (%d) respawnou todos os veнculos desocupados.", ptname, playerid);
SendClientMessageToAll(tcadm, string);
}
return 1;
}