COMMAND:rc(playerid, params[])
{
SendAdminText(playerid, "/rc", params);
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][PlayerLevel] >= 5)
{
SendClientMessageToAll(0x00FF00FF, "[BTS] Todos Veнculos Resetado Por Um Administrador.");
for(new i=0; i<MAX_VEHICLES; i++)
{
#define VehicleOccupied(i)
{
SetVehicleToRespawn(i);
}
}
}
else
return 0;
}
else
return 0;
return 1;
}
COMMAND:rc(playerid, params[])
{
new bool:vehicle[MAX_VEHICLES];
SendAdminText(playerid, "/rc", params);
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][PlayerLevel] >= 5)
{
SendClientMessageToAll(0x00FF00FF, "[BTS] Todos Veнculos Resetado Por Um Administrador.");
for(new j = 1; j < GetVehicleModel(j); j++)
{
vehicle[j] = false;
for(new i, p = MAX_PLAYERS; i < p; i++)
{
if(!IsPlayerInAnyVehicle(i) || !IsPlayerConnected(i)) continue;
if(IsPlayerInVehicle(i, j))
{
vehicle[j] = true;
break;
}
}
if(!vehicle[j]) SetVehicleToRespawn(j);
}
}
}
return 1;
}
#define VehicleOccupied(i) |