22.05.2014, 00:01
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.
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;
}
CMD:leave(playerid, params[])
{
if(DM[playerid] == 0) return 0;
DM[playerid] == 0;
ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0.0);
return 1;
}