Posts: 6,129
Threads: 36
Joined: Jan 2009
pawn Код:
if(GetPlayerScore(playerid) == 100)
{
SetPlayerScore( playerid, 101 );
GameTextForPlayer(playerid, "New Rank! Killah!", 1000, 5);
return 1;
}
There are better ways, but that'll do.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Dark_Kostas
pawn Код:
if(GetPlayerScore(playerid) == 100) { if(GetPVarInt(playerid, "100Rank") == 1) return 1;//Use "continue;" if this is on a loop SetPVarInt(playerid, "100Rank", 1); GameTextForPlayer(playerid, "New Rank! Killah!", 5000, 5); return 1; }
|
So you're making a PVar, despite the score being an individual-saving variable? Okay.
Posts: 551
Threads: 122
Joined: Nov 2009
Reputation:
0
Well, I want it to stay for 5 seconds. It stays the whole time. Which one would do that ^_^