Posts: 424
Threads: 21
Joined: Jun 2008
Reputation:
0
yes, none of us really know what he was thinking putting all of those in there, and even if it was neccesary, wouldn't a
if(!IsPlayerConnected(playerid)) return 1;
at the top be better?
Posts: 104
Threads: 1
Joined: Feb 2008
Reputation:
0
Well except for the fact that players who haven't even typed a password can do phone calls, advertisements, job commands, and just about every exploit imaginable.
Yeah other than that there is absolutely NO reason at all for IsPlayerConnected. Just put IsPlayerConnected above all the commands except /login and /register and you'll be fine.
Posts: 104
Threads: 1
Joined: Feb 2008
Reputation:
0
No I only know what it does and doesn't do. I'm well aware that gPlayerlogged or any other number of handmade definitions will work. But in most gamemodes like GF having that if statement keeps non-logged in players from exploiting your commands.
Posts: 104
Threads: 1
Joined: Feb 2008
Reputation:
0
It's my opinion that the only way to "know" what a function does is to TRY it.
After repeated individuals were pointing out that "IsPlayerIsConnected" was redundant, I removed all instances and tried exploiting those commands.. Which worked. So I placed IsPlayerConnected at the top of OnPlayerCommandText and they were no longer exploitable. This might be isolated to the godfather script but honestly its not worth the amount of hatred that people associate with it. If it works, it works. This is something I troubleshooted after I heard these same assumptions spewed out by other people. If you would like to offer alternatives I'd gladly take them but I am not convinced that you are doing more than repeating what you've heard, compared to say troubleshooting it yourself. Remove IsPlayerConnected from the GF command "/ad" and try to post an ad before logging in. Do it with and without the if statement.
This is what my account of IsPlayerConnected is based on. Not what other people are saying should and shouldn't work.
Posts: 104
Threads: 1
Joined: Feb 2008
Reputation:
0
Has it since been fixed? If so I will apologize for my own assumptions that the exploit is still there.
Posts: 156
Threads: 3
Joined: Jan 2008
Reputation:
0
Yes, i believe it's fixed since 0.2.