Pedido
#3

PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    if(!
ispassanger)
    {
        new 
bool:ocupado;
        for(new 
iGetMaxPlayers(); p++)
        {
            if(!
IsPlayerConnected(i) || GetPlayerState(i) != 2) continue;
            if(
IsPlayerInVehicle(ivehicleid))
            {
                
ocupado true;
                break;
            }
        }
        if(!
ocupado)
        {
            new 
Float:Pos[3];
            
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
            
SetPlayerPos(playeridPos[0], Pos[1], Pos[2]+2);
            
SendClientMessage(playerid0xFF0000FF"Este veiculo jб estб ocupado.");
        }
    }
    return 
1;

Reply


Messages In This Thread
Pedido - by rugal - 16.08.2011, 22:10
Re: Pedido - by Macintosh - 16.08.2011, 22:37
Re: Pedido - by Shadoww5 - 16.08.2011, 22:39
Re: Pedido - by RockFire - 16.08.2011, 22:43
Re: Pedido - by rugal - 16.08.2011, 22:44
Re: Pedido - by [S]trong - 16.08.2011, 22:53
Re: Pedido - by Shadoww5 - 16.08.2011, 22:55
Re: Pedido - by rugal - 16.08.2011, 23:38
Re: Pedido - by RockFire - 16.08.2011, 23:42
Re: Pedido - by CyNiC - 16.08.2011, 23:46

Forum Jump:


Users browsing this thread: 2 Guest(s)