15.04.2010, 20:46
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:
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; }