Quote:
Originally Posted by Drift_King786
Quote:
Originally Posted by Backwardsman97
pawn Код:
dcmd_commands(playerid,params) { if(!strcmp(params, "police", true)) { SendClientMessage(playerid, 0xFAFAFAFF, "Police"); return 1; } if(!strcmp(params, "admin", true)) { SendClientMessage(playerid, 0xFAFAFAFF, "Admin"); return 1; } if(!strcmp(params, "prostitute", true)) { SendClientMessage(playerid, 0xFAFAFAFF, "Prostitute"); return 1; } SendClientMessage(playerid, 0xFAFAFAFF, "/commands [police|admin|prostitute]"); return 1; }
|
i have defined dcmd
but it says to define dcmd_commands and params
|
Did you put 'dcmd(commands,8,cmdtext);' under OnPlayerCommandText?