Is there a way to disable all commands before player logs in?
#1

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?
Reply
#2

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;
}
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)