onplayerconnect question
#5

Quote:
Originally Posted by |∞|-Рцппσĵσ-|∞|
On top of the script.
pawn Код:
new dontspeak[MAX_PLAYERS];
OnPlayerConnect
pawn Код:
dontspeak[playerid] = 1;
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(dontspeak[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't speak now, please spawn first!");
        return 0;
    }
    return 1;
}
OnPlayerSpawn
pawn Код:
dontspeak[playerid] = 0;
Thanks it worked , now to not make another Thread would you help me on also adding a no player command one?

Edit: thank you so much! your pro thanks
Reply


Messages In This Thread
onplayerconnect question - by XeoN_13 - 18.08.2009, 00:07
Re: onplayerconnect question - by coole210 - 18.08.2009, 00:11
Re: onplayerconnect question - by XCultz - 18.08.2009, 00:42
Re: onplayerconnect question - by Djiango - 18.08.2009, 00:50
Re: onplayerconnect question - by XeoN_13 - 18.08.2009, 02:19
Re: onplayerconnect question - by ilikepie2221 - 18.08.2009, 02:31
Re: onplayerconnect question - by XeoN_13 - 18.08.2009, 03:15
Re: onplayerconnect question - by XeoN_13 - 18.08.2009, 04:16
Re: onplayerconnect question - by Djiango - 18.08.2009, 09:20
Re: onplayerconnect question - by Correlli - 18.08.2009, 09:27

Forum Jump:


Users browsing this thread: 2 Guest(s)