Prevent player to use commands until he log in.
#2

pawn Код:
new blabla[MAX_PLAYERS]

Onplayerconnect

blabla = 1;

public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(blabla[playerid] == 1)
    {
        SendClientMessage(playerid, -1, "You cannot use commands at the moment...");
        return 1;
    }
        return 1;
}

Onplayerspawn

blabla = 0;
Reply


Messages In This Thread
Prevent player to use commands until he log in. - by RedJohn - 25.09.2012, 08:01
Re: Prevent player to use commands until he log in. - by Djole1337 - 25.09.2012, 08:06
Re: Prevent player to use commands until he log in. - by RedJohn - 25.09.2012, 08:07
Re: Prevent player to use commands until he log in. - by mamorunl - 25.09.2012, 08:08
Re: Prevent player to use commands until he log in. - by BlueGames - 25.09.2012, 08:09
Re: Prevent player to use commands until he log in. - by RedJohn - 25.09.2012, 08:13
Re: Prevent player to use commands until he log in. - by Emmet_ - 25.09.2012, 08:32
Re: Prevent player to use commands until he log in. - by RedJohn - 25.09.2012, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)