15.07.2015, 17:04
How can i make When player enters in dm he cant use any command but when exits he can.?
new InEvent[MAX_PLAYERS];
"InEvent[playerid] == 1"
InEvent[playerid] = 1;
InEvent[playerid] = 0;
CMD:dm1(playerid, params[]) { SendClientMessage(playerid, COLOR_YELLOW, "Welcome to DM1"); InEvent[playerid] = 1; SetPlayerPos(Pos); return 1; }
CMD:Leave(playerid, params[]) { InEvent[playerid] = 0; SetPlayerPos(playerid, pos); return 1; }