[Ajuda] Getar ID de quem estiver de carona
#8

Ou tambйm, no caso de ser server RPG e querer mostrar a mensagem apenas para players que estiverem perto, usando a public ProxDetector, testei e funcionou.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_PASSENGER)
    {
        new playa[MAX_PLAYER_NAME];
        GetPlayerName(playerid, playa, sizeof(playa));
        format(gstring, sizeof(gstring), "%s ID %d entrou na carona do veнculo.", playa, playerid);
        ProxDetector(30.0, playerid, gstring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    return 1;
}
Reply


Messages In This Thread
Getar ID de quem estiver de carona - by Diogennes - 22.11.2013, 00:57
Re: Getar ID de quem estiver de carona - by bombomloko - 22.11.2013, 01:06
Re: Getar ID de quem estiver de carona - by focaximubh - 22.11.2013, 01:09
Re: Getar ID de quem estiver de carona - by Diogennes - 22.11.2013, 01:10
Re: Getar ID de quem estiver de carona - by bombomloko - 22.11.2013, 01:13
Re: Getar ID de quem estiver de carona - by Diogennes - 22.11.2013, 01:15
Re: Getar ID de quem estiver de carona - by focaximubh - 22.11.2013, 01:18
Re: Getar ID de quem estiver de carona - by bombomloko - 22.11.2013, 01:32
Re: Getar ID de quem estiver de carona - by Diogennes - 22.11.2013, 12:23

Forum Jump:


Users browsing this thread: 2 Guest(s)