A littile help please!
#2

Well you can do something like this
You make a copy of that : PlayerInfo[playerid][pPoints]
But now example with the name PlayerInfo[playerid][FirstSay]
And you set the PlayerInfo[playerid][FirstSay] to 1 when he said the first thing
Then you put
if(PlayerInfo[playerid][FirstSay] != 1)

Above that fuctions
So something like this:
Код:
if (realchat)
	{
	  if(gPlayerLogged[playerid] == 0)
	  {
	    return 0;
   	}
		if(PlayerInfo[playerid][FirstSay] != 1)
		{
		GetPlayerName(playerid, sendername, sizeof(sendername));
		format(string, sizeof(string), "%s Says: %s", sendername, text);
		PlayerInfo[playerid][pPoints]+ 100;//this is kinda it, what should I put here to keep giving him points? :-S
		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		}
		return 0;
	}
	return 1;
}
Reply


Messages In This Thread
A littile help please! - by mihaitza55 - 15.04.2010, 20:37
Re: A littile help please! - by RSC_Quicker - 15.04.2010, 20:46
Re: A littile help please! - by mihaitza55 - 15.04.2010, 20:48
Re: A littile help please! - by RSC_Quicker - 15.04.2010, 21:16
Re: A littile help please! - by mihaitza55 - 16.04.2010, 07:28
Re: A littile help please! - by mihaitza55 - 16.04.2010, 18:51
Re: A littile help please! - by kLx - 16.04.2010, 19:21
Re: A littile help please! - by mihaitza55 - 16.04.2010, 20:29

Forum Jump:


Users browsing this thread: 1 Guest(s)