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

How to stop particular command, at a particular place
Please tell because i need to stop some commands at DM's ...

Thanks for replies.
Reply
#2

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.");
Reply
#3

LOL i need to stop some cmds like /v /god and all at DM's :/ Any Help!?!?
Not for Event anyways thanks for reply
Reply
#4

lol use what he said the name doesnt matter event/area/etc..
Reply
#5

Quote:
Originally Posted by jamesbond007
Посмотреть сообщение
lol use what he said the name doesnt matter event/area/etc..
Ok thnx i am kinda new at scripting, but i map well :P
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)