A problem about onplayertext
#5

Here it is-
Код:
public OnPlayerText(playerid, text[])
{


if(PlayerInfo[playerid][LoggedIn] !=1) return SendClientMessage(playerid,COLOR_RED,"BLABLABLA");


 new file[64],pName[24],s[64];
	GetPlayerName(playerid,pName,24);
	format(file,64,"Tags/%s.ini",pName);
	if(!dini_Isset(file,"Tag"))
	{
		if(fexist(file))
		{
			format(s,64," %s [ID:%d]",text,playerid);
			SendPlayerMessageToAll(playerid, s);
		}
		return 0;
	}
	else if(dini_Isset(file,"Tag"))
	{
		if(fexist(file))
		{
			format(s,64," %s [ID:%d| %s]",text,playerid,dini_Get(file,"Tag"));
			SendPlayerMessageToAll(playerid, s);
			return 1;
 }

 	}
	return 0;
}
Reply


Messages In This Thread
A problem about onplayertext - by Apply - 14.05.2010, 01:53
Re: A problem about onplayertext - by cessil - 14.05.2010, 01:55
Re: A problem about onplayertext - by Apply - 14.05.2010, 01:59
Re: A problem about onplayertext - by cessil - 14.05.2010, 02:03
Re: A problem about onplayertext - by Apply - 14.05.2010, 02:05
Re: A problem about onplayertext - by cessil - 14.05.2010, 02:17
Re: A problem about onplayertext - by Apply - 14.05.2010, 02:20

Forum Jump:


Users browsing this thread: 1 Guest(s)