Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
I dont think this is possible without modifying the actual include, how-ever I could be wrong. I'd recommend using something such as @ as / is not really practical.
Posts: 2,593
Threads: 34
Joined: Dec 2007
You need edit ZCMD inc for this or use ZCMD OnPlayerCommandReceived
Posts: 2,593
Threads: 34
Joined: Dec 2007
pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"//",true,2) && IsAdminVariable(playerid))
{
// put your old cmd here
return 0;
}
return 1;
}
should work
Posts: 1,578
Threads: 15
Joined: Feb 2013
Reputation:
0
You can use cmdtext[3] for this, or use sscanf to split cmdtext into cmd and params.