OnPlayerText doesnt work help
#1

Guys,
I made a VIP tag for VIP players so when they chat its known that they are VIP. But it doesnt work. The only way to make it work is when i log into RCON and unload then load the script. But then it works, BUT, Then the vip commands dont. Something weird help.

pawn Код:
public OnPlayerText(playerid,text[])
{
    if(PlayerInfo[playerid][pVIPLevel] < 1) {
    new string[128], playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "{00FFFF}[VIP] {FFFF00}- %s[%d]: {00FF40}- (  {FF00FF}%s  {00FF40})",playername, playerid, text);
    SendClientMessageToAll(0xFF0000C8, string);
    return 0;
    }else if(muted[playerid] == 1){
        SendClientMessage(playerid,-1,"ERROR:Your muted.");
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerText doesnt work help - by Threshold - 03.12.2012, 20:46
Re: OnPlayerText doesnt work help - by WoodPecker - 03.12.2012, 21:02
Re: OnPlayerText doesnt work help - by zSuYaNw - 03.12.2012, 21:06
Re: OnPlayerText doesnt work help - by Threshold - 03.12.2012, 21:21
Re: OnPlayerText doesnt work help - by WoodPecker - 03.12.2012, 21:26
Re: OnPlayerText doesnt work help - by zSuYaNw - 03.12.2012, 21:27
Re: OnPlayerText doesnt work help - by Threshold - 03.12.2012, 21:35
Re: OnPlayerText doesnt work help - by Threshold - 03.12.2012, 21:43
Re: OnPlayerText doesnt work help - by WoodPecker - 04.12.2012, 06:41
Re: OnPlayerText doesnt work help - by Threshold - 04.12.2012, 06:45

Forum Jump:


Users browsing this thread: 1 Guest(s)