[PEDIDO] Rбdio
#6

pawn Код:
new gangteam[MAX_PLAYERS];

// achu que o eu deve ser requestclass
gangteam[playerid] = GROVE;
pawn Код:
forward OnPlayerGangText(playerid,text[]);
public OnPlayerGangText(playerid,text[]) // GANG Xat
{
    for (new i = 0; i < MAX_PLAYERS; i++) if (IsPlayerConnected(i) && gangteam[i] == gangteam[playerid])
        {
        SendClientMessage(i, 0x88FF9FAA, text);
        }
    return 0;
}
pawn Код:
onplayertext
new srvchat[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(text[0] == '!')
{//Se Tiver '!'
format(srvchat, sizeof(srvchat),"|| Chat Gang %s: (id:%d): %s", pName, playerid, text[1]);
CallRemoteFunction("OnPlayerGangText","ds",playerid,srvchat);
Reply


Messages In This Thread
[PEDIDO] Rбdio - by [AF]Junior - 14.02.2011, 02:30
Re: [PEDIDO] Rбdio - by maquerx - 14.02.2011, 12:59
Re: [PEDIDO] Rбdio - by [AF]Junior - 14.02.2011, 13:28
Re: [PEDIDO] Rбdio - by Link_ - 14.02.2011, 13:38
Re: [PEDIDO] Rбdio - by Ricop522 - 14.02.2011, 13:53
Re: [PEDIDO] Rбdio - by Link_ - 14.02.2011, 14:01

Forum Jump:


Users browsing this thread: 3 Guest(s)