how to make a command with dcmd?
#3

Well, I'm not sure what you're trying to do, but I took this off my admin script. You can edit it around if you want and remove the if(PlayerInfo[playerid][Level] >= 1) { line if you'd like.

pawn Код:
dcmd_enter(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 1) {
           // YOUR STUFF HERE
        } else return SendClientMessage(playerid,red,"ERROR: Invalid Player ID.");
    } else return SendClientMessage(playerid,red,"ERROR: You Are Not A High Enough Level To Use This Command.");
}
EDIT: You also need to add dcmd(enter,5,cmdtext); under OnPlayerCommandText
Reply


Messages In This Thread
how to make a command with dcmd? - by iGetty - 05.03.2011, 19:10
Re: how to make a command with dcmd? - by bestr32 - 05.03.2011, 19:25
Re: how to make a command with dcmd? - by grand.Theft.Otto - 05.03.2011, 19:26
Re: how to make a command with dcmd? - by Markx - 05.03.2011, 19:30
Re: how to make a command with dcmd? - by bestr32 - 05.03.2011, 19:58

Forum Jump:


Users browsing this thread: 2 Guest(s)