Forbidden characters in dialog inputtext
#1

hello everyone, is there a way to make %s, %d, %f, not writeable in dialogs inputtext? i need this because someone is crashing my server typing %s in some dialog... help me please..
Reply
#2

https://sampwiki.blast.hk/wiki/Strfind
PHP код:
if(strfind(inputtext"%") != -1// Finds a blank space
{
        
SCM(playerid, -1"That is forbidden charachter");
        return 
1;

Reply
#3

working, thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)