[Ajuda] Respawn veiculos
#5

PHP код:
CMD:respawn(playerid)
{
   for( new 
0MAX_VEHICLESv++ )
   {
      if( !
IsVehicleOccupied) && NotTrailerAtached)) SetVehicleToRespawn);
      {
            
SendClientMessageplayerid0x00FF66AA"{FFFF00} Vocк respawnou todos os veнculos que estгo desocupados." );
      }
   }
   return 
1;

PHP код:
stock IsVehicleOccupiedvehicleid )
{
    foreach(
Player) if( IsPlayerInVehicleivehicleid ) && GetPlayerState) == PLAYER_STATE_DRIVER )
    return 
1; return 0;
}
stock NotTrailerAtachedvehicle )
{
    foreach(
Player)
    {
        new
            
GetPlayerVehicleID)
        ;
        if( 
IsPlayerInAnyVehicle) && GetVehicleModel) == 515 )
        {
            if( 
vehicle == GetVehicleTrailerGetPlayerVehicleID)) )
            {
                return 
0;
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Respawn veiculos - by LucasDias - 16.07.2015, 01:59
Re: Respawn veiculos - by Cleyson - 16.07.2015, 02:10
Re: Respawn veiculos - by LucasDias - 16.07.2015, 02:19
Re: Respawn veiculos - by iTakelot - 16.07.2015, 02:22
Re: Respawn veiculos - by Welconha - 16.07.2015, 02:31
AW: Respawn veiculos - by djgabrielway - 16.07.2015, 06:05
Re: Respawn veiculos - by n0minal - 16.07.2015, 06:16
AW: Respawn veiculos - by djgabrielway - 16.07.2015, 06:20
Re: Respawn veiculos - by n0minal - 16.07.2015, 06:26

Forum Jump:


Users browsing this thread: 1 Guest(s)