Take the weapons || Newbie Question
#1

Alright, I made a /dm place, named the string and everything but there is a problem, I want him to not submit any command before leaving the /dm (/leave), And it will take his weapons and armour. Thanks in advance.
Reply
#2

If your using ZCMD,

pawn Код:
public OnPlayerCommandRecieved(playerid, cmdtext[])
{
if(!IsPlayerAdmin && DM[playerid] == 1 && strcmp(cmdtext, "/dm",false) {
SendClientMessage(playerid, -1, "You cannot use commands whilst in the DM arena.");
return 0;
else return 1;
}
pawn Код:
CMD:leave(playerid, params[])
{
if(DM[playerid] == 0) return 0;
DM[playerid] == 0;
ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0.0);
return 1;
}

Untested.
Reply
#3

I want the normal one, Please
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)