Cant Speak if Not Logged In HELP
#2

pawn Код:
new pLogged[MAX_PLAYERS];
On successful login do:

pawn Код:
pLogged[playerid] = 1;
Then do this:

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    if(pLogged == 1)
    {
        format(string, sizeof(string), "%s says %s", name, text);
        SendClientMessageToAll(-1, string);
    }
    else
    {
             SendClientMessage(playerid, -1, "You must be logged in to talk!");
    }
    return 0;
}
Reply


Messages In This Thread
Cant Speak if Not Logged In HELP - by ShawtyyMacJunior - 09.11.2012, 01:29
Re: Cant Speak if Not Logged In HELP - by Abreezy - 09.11.2012, 01:50

Forum Jump:


Users browsing this thread: 2 Guest(s)