What is wrong in that command
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/pay", true) == 0) {
        if(IsPlayerConnected(playerid) ) {
            if (boxevent == 0 && PlayerInfo[playerid][pAdmin] >= 1337) {
                boxevent = 1;
                BroadCast(COLOR_GREEN, " ***************!");
            }
            else if(boxevent == 1 && IsPlayerAdmin(playerid)) {
                boxevent = 0;
                BroadCast(COLOR_GREEN, " ******************.");
            }
        }
        return 1;
    }
    // Rest
    return 0;
}
Reply


Messages In This Thread
What is wrong in that command - by boyan96 - 04.02.2012, 17:06
Re: What is wrong in that command - by boyan96 - 04.02.2012, 17:29
Re: What is wrong in that command - by ServerScripter - 04.02.2012, 17:46
Re: What is wrong in that command - by Thunderbolt - 04.02.2012, 17:49
Re: What is wrong in that command - by Konstantinos - 04.02.2012, 17:58

Forum Jump:


Users browsing this thread: 2 Guest(s)