27.01.2013, 06:55
Your code was wrong anyway...
Take a closer look. I'd say YOU are the only one 'copying' codes here...
Also take note that Jewell's code is much more correct than yours is... where have you defined COLOR_YELLOW? Are you just assuming the poster would already have this defined?
pawn Код:
public OnPlayerText(playerid, text[])
{
new params[129];
}
if(text[0] == '#' && if(PlayerInfo[playerid][pVIP] >= 2)
{
new str[128];
format(str, sizeof(str), "VIP CHAT: %s[%d]: %s", GetName(playerid), playerid, text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && if(PlayerInfo[playerid][pVIP] >= 2)
{
SendClientMessage(i, COLOR_YELLOW, str);
}
}
return 0;
}
return 1;
}
Also take note that Jewell's code is much more correct than yours is... where have you defined COLOR_YELLOW? Are you just assuming the poster would already have this defined?