25.11.2011, 16:52
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;
}