respawn veh bug
#3

Quote:

if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] <= 5)
{
SendMessage(playerid, COLOR_GREEN, "Error: You are not authorized to use this command.");
return 1;
}
for(new i = 0;i<MAX_VEHICLES;i++)
{
if(IsUnusedVehicle(i) && IsVehicleConnected(i) && OwnedMashin[i] == 0 && OwnedMashin_2[i] == 0) SetVehicleToRespawn(i);
}
format(string,256,"{FFFFFF}All Vehicles Respawned By Owner %s",PINFO[playerid][pName]);
AdminWarn(string);
}
return 1;
}

respawn code
Reply


Messages In This Thread
respawn veh bug - by AliEnPi - 21.06.2016, 14:09
Re: respawn veh bug - by TwinkiDaBoss - 21.06.2016, 14:20
Re: respawn veh bug - by AliEnPi - 21.06.2016, 14:38
Re: respawn veh bug - by AliBro - 21.06.2016, 15:16

Forum Jump:


Users browsing this thread: 1 Guest(s)