04.09.2014, 09:36
Hi.I have a /rac command:
This command working,but respawn my used trailers.How to add to stop respawn used trailers?Thanks for help
pawn Код:
COMMAND:rac(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/rac", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
// Check if the player's admin-level is at least 1
if(APlayerData[playerid][PlayerLevel] >= 4)
{
for (new i = 1; i < MAX_VEHICLES; i++)
{
if(IsVehicleOccupied(i) == 0) SetVehicleToRespawn(i);
}
}
return 1;
}