05.12.2011, 15:41
Im using the Ulrich Vehicle System, but i have a problem,
When i use the underneath respawnvehicles lines (from CRP Carlitos RP), it respawns all vehicles.. Also the ones from Ulrich Vehicle System, how can i make it so that it doesn't respawn the Ulrich vehicles(player vehs) OR that its 2 seperate respawn commands.
Pastebin Ulrich vehicle System: http://pastebin.com/K7PS9pyv
Thx in Advance.
When i use the underneath respawnvehicles lines (from CRP Carlitos RP), it respawns all vehicles.. Also the ones from Ulrich Vehicle System, how can i make it so that it doesn't respawn the Ulrich vehicles(player vehs) OR that its 2 seperate respawn commands.
Pastebin Ulrich vehicle System: http://pastebin.com/K7PS9pyv
Thx in Advance.
PHP код:
if(strcmp(cmd, "/respawnvehicles", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
for(new i=0;i<MAX_VEHICLES;i++)
{
if(IsVehicleOccupied(i) == 0)
{
SetVehicleToRespawn(i);
}
}
format(string, sizeof(string), "[INFO:] Unoccupied vehicles respawned by %s.", GetPlayerNameEx(playerid));
SendClientMessageToAll(COLOR_ADMINCMD, string);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Your not an administrator.");
}
return 1;
}