[Ajuda] Chat prуximo
#4

Eu utilizo essa, pois com essa pode configurar vбrias cores, dependendo da distвncia do jogador.

PHP Code:

ProxDetector
(Float:radiplayeridstring[], col1col2col3col4col5)
{
    new 
Float:oldposxFloat:oldposyFloat:oldposz;
    
GetPlayerPos(playeridoldposxoldposyoldposz);
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        if(
GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid) && GetPlayerInterior(i) == GetPlayerInterior(playerid))
        {
            if(
IsPlayerInRangeOfPoint(iradi/16,oldposxoldposyoldposz)) SendClientMessage(icol1string);
            else if(
IsPlayerInRangeOfPoint(iradi/8,oldposxoldposyoldposz)) SendClientMessage(icol2string);
            else if(
IsPlayerInRangeOfPoint(iradi/4,oldposxoldposyoldposz)) SendClientMessage(icol3string);
            else if(
IsPlayerInRangeOfPoint(iradi/2,oldposxoldposyoldposz)) SendClientMessage(icol4string);
            else if(
IsPlayerInRangeOfPoint(iradi,oldposxoldposyoldposz)) SendClientMessage(icol5string);
        }
    }
    return 
1;

Reply


Messages In This Thread
Chat prуximo - by RayanSanty - 11.03.2019, 22:07
Re: Chat prуximo - by ipsLuan - 11.03.2019, 22:08
Re: Chat prуximo - by ipsLuan - 11.03.2019, 22:36
Re: Chat prуximo - by Malandrin - 11.03.2019, 22:59
Re: Chat prуximo - by zF3lKy3 - 11.03.2019, 23:34

Forum Jump:


Users browsing this thread: 1 Guest(s)