04.02.2012, 17:06
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) && IsPlayerAdmin(playerid))
{
boxevent = 0;
BroadCast(COLOR_GREEN, " ******************.");
}
return 1;
}
{
if(IsPlayerConnected(playerid) && (boxevent == 0) && if (PlayerInfo[playerid][pAdmin] >= 1337
{
boxevent = 1;
BroadCast(COLOR_GREEN, " ***************!");
}
else if(IsPlayerConnected(playerid) && (boxevent == 1) && IsPlayerAdmin(playerid))
{
boxevent = 0;
BroadCast(COLOR_GREEN, " ******************.");
}
return 1;
}