SA-MP Forums Archive
problem with a caracter in zcmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: problem with a caracter in zcmd (/showthread.php?tid=619807)



problem with a caracter in zcmd - ImMuslimNigga - 22.10.2016

Hello i need help for make a /( command in zcmd, can anyone help me or it's impossible ?


Re: problem with a caracter in zcmd - ThatFag - 22.10.2016

show the command please.


Re: problem with a caracter in zcmd - Micko123 - 22.10.2016

https://sampforum.blast.hk/showthread.php?tid=91354

WOW that mighty www.******.com :O


Re: problem with a caracter in zcmd - ImMuslimNigga - 22.10.2016

I want to my like the command "/("
Код:
COMMAND:((playerid, params[])
{
  // some stuff here
  return 1;
}



Re: problem with a caracter in zcmd - Micko123 - 22.10.2016

Not possible


Re: problem with a caracter in zcmd - Kaliber - 22.10.2016

You can do it but in OnPlayerText:

PHP код:
public OnPlayerText(playeridtext[])
{
    if(
text[0] == '(')
    {
        
//Here he typed ( :)
        
return 0;
    }
    return 
1;




Re: problem with a caracter in zcmd - SickAttack - 22.10.2016

It is possible, but you will have to edit the include (replace "(" for a character that is supported in defining functions). Or just edit the macro, possibly.