23.08.2014, 21:43
pawn Code:
CMD:rac(playerid, params[])
{
SendAdminText(playerid, "/rac", params);
if(APlayerData[playerid][PlayerLevel] > 1)
{
for (new i = 1; i < MAX_VEHICLES; i++)
{
if(IsVehicleOccupied(i) == 0) SetVehicleToRespawn(i);
}
}
return 1;
}
stock IsVehicleOccupied(vehicleid)
{
for(new i =0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i, vehicleid))
{
return 1;
}
}
return 0;
}
CMD:cc(playerid, params[])
{
for(new i = 0; i < 100; i++)
{
SendClientMessageToAll(-1, "");
}
return 1;
}