Respawn all free trailers?
#5

PHP Code:

new bool:TrailerIsFree[MAX_VEHICLES] = true;
public 
OnPlayerCommandText(playeridcmdtext[])
{
if(!
strcmp(cmdtext"/respawnfreetrailers"true))
{
new 
TrailerID = -1;
for(new 
i=0i<MAX_VEHICLES;i=i+1)
{
if(
IsTrailerAttachedToVehicle(i) == 1)
{
TrailerID GetVehicleTrailer(i);
TrailerIsFree[TrailerID] = false;
}
}
for(new 
i=0i<MAX_VEHICLES;i=i+1)
{
if(
TrailerIsFree[i] == true)
{
SetVehicleToRespawn(i);
}
}
}
return 
0;

Reply


Messages In This Thread
Respawn all free trailers? - by rOps - 23.01.2019, 10:59
Re: Respawn all free trailers? - by rOps - 23.01.2019, 11:12
Re: Respawn all free trailers? - by rOps - 23.01.2019, 12:23
Re: Respawn all free trailers? - by JaKe Elite - 23.01.2019, 14:30
Re: Respawn all free trailers? - by MEGADETHS - 24.01.2019, 04:05
Re: Respawn all free trailers? - by Kaliber - 24.01.2019, 07:26
Re: Respawn all free trailers? - by Calisthenics - 24.01.2019, 08:30
Re: Respawn all free trailers? - by Kaliber - 24.01.2019, 09:50
Re: Respawn all free trailers? - by MEGADETHS - 24.01.2019, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)