Truck Problem
#6

now how can i make only IsATLCar and IsATrailer respawn only those 2

Quote:

if(strcmp(cmd, "/rtt", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1337)
{
SendClientMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
return 1;
}
new bool:unwanted[MAX_VEHICLES];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInAnyVehicle(i))
{
unwanted[GetPlayerVehicleID(i)] = true;
}
}
for(new car = 1; car <= 359; car++)
{
if(!unwanted[car])
{
SetVehicleToRespawn(car);
}
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Toate Masinile de la jobul 'Transport Lapte' sau respawnat de %s.", sendername);
BroadCast(COLOR_WHITE,string);
}
return 1;
}

Reply


Messages In This Thread
Truck Problem - by Akcent_Voltaj - 04.03.2013, 10:27
Re: Truck Problem - by Threshold - 04.03.2013, 10:38
Re: Truck Problem - by Doughty - 04.03.2013, 10:39
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 11:08
Re: Truck Problem - by Doughty - 04.03.2013, 11:46
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 16:24
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 17:33
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 17:55
Re: Truck Problem - by ViniBorn - 04.03.2013, 18:20
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)