Help with DM
#1

Question : How can I make a player not use any commands, other than /kill
in DM zones


Problem : I forgot how to to that
________
Daihatsu Taft Specifications
Reply
#2

Umm i'll try taking a guess


pawn Код:
new DMZONE[MAX_PLAYERS];
onplayerconnect:

pawn Код:
DMZONE[playerid] = 0;
onplayerdisconnect:

pawn Код:
DMZONE[playerid] = 0;

Then when they try to do a command add this in the command

pawn Код:
if(DMZONE[playerid] == 1) {
SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a DM ZONE");
return 1;
}
Reply
#3

As above said, but .. make sure your /kill command and any others you want the player to be able to use in DM are above:

pawn Код:
if(DMZONE[playerid] == 1) {
SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command in a DM ZONE");
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)