08-25-2017, 04:01 PM
Step 1:
We create a static, go up in the gamemode after the last #include
And add this static:
Static const antisqlinjection [] [] =
{
"" "
"#"
"` "
"% S",
"% D",
"% F"
};
Step 2:
We go to OnDialogResponse and add this function:
For (new i; i <sizeof (antisqlinjection); i ++)
{
If (strfind (inputtext, antisqlinjection [i], true)! = -1)
{
SCM (playerid, -1, "No such characters allowed");
Return 1;
}
}
We create a static, go up in the gamemode after the last #include
And add this static:
Static const antisqlinjection [] [] =
{
"" "
"#"
"` "
"% S",
"% D",
"% F"
};
Step 2:
We go to OnDialogResponse and add this function:
For (new i; i <sizeof (antisqlinjection); i ++)
{
If (strfind (inputtext, antisqlinjection [i], true)! = -1)
{
SCM (playerid, -1, "No such characters allowed");
Return 1;
}
}