#1

How can i make it so when someone makes a rank on my server it doesn't keep spam "New Rank! Killah!"

pawn Код:
if(GetPlayerScore(playerid) == 100)
{
   GameTextForPlayer(playerid, "New Rank! Killah!", 5000, 5);
   return 1;
}
Reply
#2

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.
Reply
#3

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;
}
Reply
#4

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.
Reply
#5

Well, I want it to stay for 5 seconds. It stays the whole time. Which one would do that ^_^
Reply
#6

Quote:
Originally Posted by ScottCFR
Well, I want it to stay for 5 seconds. It stays the whole time. Which one would do that ^_^
Both of them will work. But using FreddoX's will set your score to 101, but mine will keep it at 100 and still work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)