SA-MP Forums Archive
Why most of the commands... - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why most of the commands... (/showthread.php?tid=175386)



Why most of the commands... - Zimon95 - 09.09.2010

Why most of the commands in the GF / LA_RP check if the player is connected? It 'is a useless thing or what?


Re: Why most of the commands... - LarzI - 09.09.2010

Now it is, but when they were made, it was necaserry, cuz kicked players could call commands.


Re: Why most of the commands... - Zimon95 - 09.09.2010

Ok, thanks for the explanation.


Re: Why most of the commands... - LarzI - 09.09.2010

No probs <fucking antispam function forced me to wait 88 seconds.. blargh>


Re: Why most of the commands... - Relixious - 09.09.2010

They just could have placed this once on OnPlayerCommandText:

Код:
if(!IsPlayerConnected(playerid))
    return 1;
But instead they did this in every command, no idea why just bad scripting.