22.07.2016, 06:55
So i got a friend who owns a server with the same script, he told me that i have a dialog bug on my server, I was told that it can be used to get more money, drugs and stuffs , it can works in bank/family safes/trunks/lockers all you have to do is /switchchar > hide dialog > store cash/drugs > press enter and you'll get more , i really need some help because this bug will ruin my heavy rp server, can someone please help me?
I know how to reproduce the bug but i have no idea on how to fix it, i asked my friend and he said the problem is in wcrp.pwn (i'm using a wcrp script) ,dialog part to be exact and to fix it you need to add add a check if player is changing characters (or perhaps use the 'loggedin' pvar) And before trying to store/take things check if the player is logged in or not, which will also detect if he's changing characters or not he said Make it a function so it'll be easy to change, ect.
can someone do it for me :/ i'm new to this scripting thing?
I know how to reproduce the bug but i have no idea on how to fix it, i asked my friend and he said the problem is in wcrp.pwn (i'm using a wcrp script) ,dialog part to be exact and to fix it you need to add add a check if player is changing characters (or perhaps use the 'loggedin' pvar) And before trying to store/take things check if the player is logged in or not, which will also detect if he's changing characters or not he said Make it a function so it'll be easy to change, ect.
can someone do it for me :/ i'm new to this scripting thing?