Is there a way to disable all commands before player logs in? - 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)
+--- Thread: Is there a way to disable all commands before player logs in? (
/showthread.php?tid=470117)
Is there a way to disable all commands before player logs in? -
PrivatioBoni - 16.10.2013
As the title says, "Is there a way to disable all commands before player logs in?" or do I have to have the "isplayerloggedin" line for each command?
Re: Is there a way to disable all commands before player logs in? -
Konstantinos - 16.10.2013
If you use ZCMD:
pawn Код:
public OnPlayerCommandReceived( playerid, cmdtext[ ] )
{
if( !isplayerloggedin[ playerid ] ) return 0; // CHANGE THIS TO YOUR NEEDS (IF NOT LOGGED IN)
return 1;
}
Re: Is there a way to disable all commands before player logs in? -
PrivatioBoni - 16.10.2013
Quote:
Originally Posted by Konstantinos
If you use ZCMD:
pawn Код:
public OnPlayerCommandReceived( playerid, cmdtext[ ] ) { if( !isplayerloggedin[ playerid ] ) return 0; // CHANGE THIS TO YOUR NEEDS (IF NOT LOGGED IN) return 1; }
|
I do indeed use ZCMD, I haven't tested this yet but I'm sure it works.
Thanks very much.
You're one of the most helpful people on the whole forum, though unfortunately I am unable to "approve your post" because I've already done it before recently, I guess. I need to "spread out some reputation" first.