28.07.2011, 20:17
No but,
anything else do you use, you have to (if you want PVars)
create in every command (zcmd = public) condition about "If is player in DM, is yes send message about type kill to return, if no player can use the command
How to set PVar ?
SetPVarInt(playerid, "IN_DM", 1);
would be better if you used boolean
when player come to DM set IN_DM as 1
and in /kill set IN_DM (in kill you couldn't set condition!)
anything else do you use, you have to (if you want PVars)
create in every command (zcmd = public) condition about "If is player in DM, is yes send message about type kill to return, if no player can use the command
How to set PVar ?
SetPVarInt(playerid, "IN_DM", 1);
Код:
if (GetPVarInt(playerid, "IN_DM") == 1) { SendClientMessage(playerid, -1, "Type kill to use this command"); return false; }
when player come to DM set IN_DM as 1
and in /kill set IN_DM (in kill you couldn't set condition!)