04.02.2012, 17:49
I think that you forgot some brackets, anyway try this one,
pawn Код:
if(strcmp(cmd, "/pay", true) == 0)
{
if(IsPlayerConnected(playerid) && (boxevent == 0) && if (PlayerInfo[playerid][pAdmin] >= 1337))
{
boxevent = 1;
BroadCast(COLOR_GREEN, " ***************!");
}
else if(IsPlayerConnected(playerid) && (boxevent == 1))
{
if(IsPlayerAdmin(playerid))
{
boxevent = 0;
BroadCast(COLOR_GREEN, " ******************.");
}
}
return 1;
}