[Ajuda] OnPlayerText ajuda...
#4

deixa eu ver se entendi vocк quer que os humanos sу consiga falar com os humanos e os zumbis sу consiga falar com zombies ou administradores ? acredito que o proxdetector teria que ser modificado... entгo fiz sem se der erro sу postar.

PHP код:
public OnPlayerText(playeridtext[])
{
    new 
Float:XFloat:YFloat:Zstring[144];
    if(
realchat)
    {
        if(
gPlayerLogged[playerid] == 0)
        return 
SendClientMessage(playerid0xFF0000FF,"Vocк nгo estб logado!");

        
GetPlayerPos(playeridXYZ);

        for(new 
aMAX_PLAYERS; ++a)
        {
            if(
IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i5.0XYZ))
            {
                if(
Team[playerid] == HUMANO)
                {
                    if(
Team[i] == ZOMBIE// Se o playerid "i" nгo for um zombie e й um humano...
                    
return SendClientMessage(i, -1"[Zombie] disse algo imcompreensнvel!");

                    
format(stringsizeof(string), "%s diz: %s"GetName(playerid), text);
                    
SendClientMessage(i, -1string);

                    
format(stringsizeof(string), "diz: %s"text);
                    
SetPlayerChatBubble(playerid,string,COLOR_WHITE,5.0,5000);

                    
ApplyAnimation(playerid,"PED","IDLE_CHAT",2.0,1,0,0,1,1);
                }
                if(
Team[playerid] == ZOMBIE && Team[i] == ZOMBIE || adminstatus[i] == 2)
                {
                    
format(stringsizeof(string), "[Zombie] %s diz: %s"GetName(playerid), text);
                    
SendClientMessage(i, -1string);
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
OnPlayerText ajuda... - by Cheleber_Pausini - 14.01.2017, 18:49
Re: OnPlayerText ajuda... - by Meck - 14.01.2017, 22:50
Re: OnPlayerText ajuda... - by Cheleber_Pausini - 15.01.2017, 16:48
Re: OnPlayerText ajuda... - by Whoo - 15.01.2017, 17:07

Forum Jump:


Users browsing this thread: 1 Guest(s)