How to stop a particular command, at a particular place
#6

Quote:
Originally Posted by o_O
Посмотреть сообщение
Need to make some commands unavailable when there is a certain event?

new DM_EVENT[MAX_PLAYERS];

when player logs in:
pawn Код:
DM_EVENT[playerid] = 0;
when player joins event:
pawn Код:
DM_EVENT[playerid] = 1;
when player leaves event:
pawn Код:
DM_EVENT[playerid] = 0;
when attempting to use the command:

pawn Код:
if(DM_EVENT[playerid] == 1)return SendClientMessage(playerid,COLOR_WHITE,"You cannot use this command, reason: DM event.");
Thanks dude, hope it works
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)