Take the weapons || Newbie Question
#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


Messages In This Thread
Take the weapons || Newbie Question - by Le3aT - 22.05.2014, 00:01
Re: Take the weapons || Newbie Question - by Abagail - 22.05.2014, 00:16
Re: Take the weapons || Newbie Question - by Le3aT - 22.05.2014, 00:18

Forum Jump:


Users browsing this thread: 1 Guest(s)