[AJUDA]Choque entre dois Players
#3

Creio que seria mais ou menos isso.

PHP код:

public OnVehicleDamageStatusUpdate(vehicleid,playerid)
{
    new 
string[55], nome[MAX_PLAYER_NAME], Float:pos[3]; //Nгo use static, gasta memуria desnecessaria
    
GetPlayerPos(playeridpos[0], pos[1], pos[2]);
    for(new 
0MAX_PLAYERS; ++i)
    {
        if(
IsPlayerInRangeOfPoint(i5pos[0], pos[1], pos[2]))
        {
            if(!
IsPlayerInAnyVehicle(i))
            {
                
GetPlayerName(inomesizeofnome ) );
                
formatstringsizeof( string ),"%s encostou no seu veнculo."nome );
                
SendClientMessageplayerid0xFFFFFFFstring );
            }
        }
    }
    return 
1;

Espero ter ajudado .
Reply


Messages In This Thread
[AJUDA]Choque entre dois Players - by guivaldevieso - 13.05.2011, 01:25
Re: [AJUDA]Choque entre dois Players - by zbt_Daimyo - 13.05.2011, 01:49
Re: [AJUDA]Choque entre dois Players - by Ricop522 - 13.05.2011, 02:08
Re: [AJUDA]Choque entre dois Players - by guivaldevieso - 13.05.2011, 16:27
Re: [AJUDA]Choque entre dois Players - by [KO]KillerThriller - 14.05.2011, 09:54
Re: [AJUDA]Choque entre dois Players - by guivaldevieso - 14.05.2011, 14:30
Re: [AJUDA]Choque entre dois Players - by Macintosh - 14.05.2011, 14:39
Re: [AJUDA]Choque entre dois Players - by guivaldevieso - 14.05.2011, 14:47
Re: [AJUDA]Choque entre dois Players - by Shadoww5 - 14.05.2011, 15:11
Re: [AJUDA]Choque entre dois Players - by Macintosh - 14.05.2011, 15:13

Forum Jump:


Users browsing this thread: 5 Guest(s)