Can't write until logged in
#1

Hi
I'm trying to create a code that won't allow the player to write text or commands until he is logged in, but it doesn't seem to work so well.
I'd really appreciate it if someone could help me
Код:
public OnPlayerText(playerid, text[])
{
	if (pInfo[playerid][pLogged] == false)
	{
		SendClientMessage(playerid, COLOR_RED, "You must be logged in before writing!");
		return 0;
 	}
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (pInfo[playerid][pLogged] == false)
    {
	SendClientMessage(playerid, COLOR_RED, "You must be logged in before writing!");
	return 1;
     }
	return 0;
}
I use YCMD for the commands, that's why they aren't in the "OnPlayerCommandText" public.

Thank you.
Reply


Messages In This Thread
Can't write until logged in - by Xeiss - 17.03.2013, 07:56
Re: Can't write until logged in - by burnfire - 17.03.2013, 08:04
Re: Can't write until logged in - by Xeiss - 17.03.2013, 08:05
Re: Can't write until logged in - by mastermax7777 - 17.03.2013, 08:33
Re: Can't write until logged in - by Xeiss - 17.03.2013, 08:59
Re: Can't write until logged in - by Patrick - 17.03.2013, 09:02
Re: Can't write until logged in - by Xeiss - 17.03.2013, 09:06
Re: Can't write until logged in - by JaKe Elite - 17.03.2013, 09:30

Forum Jump:


Users browsing this thread: 1 Guest(s)