OnPlayerText
#2

Try this:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '$' && PlayerGang[playerid] > 0)
    {
        new string[256], nombre[MAX_PLAYER_NAME];
        GetPlayerName(playerid, nombre, MAX_PLAYER_NAME);
        format(string, sizeof(string), "* [Clan] %s [%i]: %s", nombre, playerid, text[1]);
        ForEach(i,MAX_PLAYERS)
        {
            if(IsPlayerAdminLevel(playerid, 4)) SendClientMessage(i, 0x00FF00FF, string);
            else if(PlayerGang[i] == PlayerGang[playerid]) SendClientMessage(i, 0x00FFFFFF, string);
        }
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerText - by EmuS - 30.01.2013, 21:05
Re: OnPlayerText - by Roach_ - 31.01.2013, 00:47

Forum Jump:


Users browsing this thread: 1 Guest(s)