ZCMD '//' command
#1

Fixed.
Reply
#2

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.
Reply
#3

You need edit ZCMD inc for this or use ZCMD OnPlayerCommandReceived
Reply
#4

Quote:
Originally Posted by Jefff
Посмотреть сообщение
You need edit ZCMD inc for this or use ZCMD OnPlayerCommandReceived
How could I use OnPlayerCommandRecived for that?
Reply
#5

pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    if(!strcmp(cmdtext,"//",true,2) && IsAdminVariable(playerid))
    {
        // put your old cmd here
        return 0;
    }
    return 1;
}
should work
Reply
#6

.....
Reply
#7

You can use cmdtext[3] for this, or use sscanf to split cmdtext into cmd and params.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)