SetPlayerScore - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetPlayerScore (
/showthread.php?tid=350354)
SetPlayerScore -
mike_1 - 12.06.2012
Can anyone tell me how to set the player's score to
+1 or
-1
iam using
Код:
SetPlayerHealth(playerid,+1)
but it sets the player score to 1 not +1...
Re: SetPlayerScore - Jarnu - 12.06.2012
pawn Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) +1)
you can change +1 to -1 too.
Re: SetPlayerScore -
mike_1 - 12.06.2012
Ok Thank you very much..
Re: SetPlayerScore -
martin3644 - 14.01.2013
Something like this?
pawn Код:
public Score()
{
for(new i = 0;i != MAX_PLAYERS;++i)
{
SetPlayerScore(i, GetPlayerScore(i)+1);
}
return 1;
}
It gives player in every minute 1 score point.
Re: SetPlayerScore -
Mr.Anonymous - 14.01.2013
Quote:
Originally Posted by martin3644
Something like this?
|
At least look at the thread's date.
Re: SetPlayerScore -
martin3644 - 14.01.2013
Quote:
Originally Posted by Mr.Anonymous
At least look at the thread's date.
|
HAHA, FAILED. Sorry. My bad!
Re: SetPlayerScore -
mineralo - 14.01.2013
pawn Код:
stock GivePlayerScore(playerid,score)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+score);
return 1;
}
add this stock into your gm, and you'll be able to use GivePlayerScore
pawn Код:
public Score()
{
for(new i = 0;i != MAX_PLAYERS;++i)
{
GivePlayerScore(i,1);
}
return 1;
}
Re: SetPlayerScore -
Mr.Anonymous - 14.01.2013
Quote:
Originally Posted by mineralo
add this stock into your gm, and you'll be able to use GivePlayerScore
|
AT LEAST LOOK AT THE PREVIOUS COMMENTS!
Re: SetPlayerScore -
Private200 - 14.01.2013
Quote:
Originally Posted by mineralo
pawn Код:
stock GivePlayerScore(playerid,score) { SetPlayerScore(playerid,GetPlayerScore(playerid)+score); return 1; }
add this stock into your gm, and you'll be able to use GivePlayerScore
pawn Код:
public Score() { for(new i = 0;i != MAX_PLAYERS;++i) { GivePlayerScore(i,1); } return 1; }
|
Anonymouse nvm him . He just got 2 pouints .
1- Posting on old topics where has been already given an answer
2- Bumping
Stop spamming .
It is 1-2 years old thread