VIP chat
#2

pawn Code:
if( (text[0] == '!') && strlen(text) > 1)
{
    new str[128];
    new szPlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);

    if(APlayerData[playerid][EtMemberShip] == 1)
    {
        format( str , sizeof( str ) , " Vip Chat: {FC0303}%s{FFFFFF}: {00CEFC}%s" , szPlayerName , text[ 1 ] ) ;

        for(new iPlayerID; iPlayerID < MAX_PLAYERS; iPlayerID++)
        {
            if(!IsPlayerConnected(iPlayerID)) continue;
            if(APlayerData[iPlayerID][EtMemberShip] == 1) continue;
            SendClientMessage(iPlayerID, 0xFFFFFFF, str);
        }
    }

    return 0;
}
Reply


Messages In This Thread
VIP chat - by thimo - 25.11.2011, 16:48
Re: VIP chat - by HyperZ - 25.11.2011, 16:52
Re: VIP chat - by thimo - 25.11.2011, 18:17
Re: VIP chat - by iPLEOMAX - 25.11.2011, 18:40
Re: VIP chat - by thimo - 26.11.2011, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)