how to make a command with dcmd?
#1

The title says it all, I am wondering, how can I make an enter command for my server, with DCMD?

Also, how can I make an enter command for just PD to use?

pawn Код:
if(Groups[Player[playerid][Group]][CommandTypes] == 1 && Player[playerid][Group] != 0 || Groups[Player[playerid][Group]][CommandTypes] == 4)
I have that, if it helps?
Reply
#2

How a enter command?
Reply
#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
#4

OMG, Cant read?
Reply
#5

No, I was saying that I don't know what is that enter, but I know what you are talking about.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)