IsPlayerScore? - 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: IsPlayerScore? (
/showthread.php?tid=407632)
IsPlayerScore? -
California_ - 14.01.2013
Hi I thought of a plan to Make a system like..
If a player has over 50 score he gets to have: A free NRG, u feel were im going? But i dont know how to make a script that check whats a player score? Please help me
Re : IsPlayerScore? -
[HRD]Mar1 - 14.01.2013
GetPlayerScore(playerid);
Re: IsPlayerScore? -
LarzI - 14.01.2013
How do you plan on increasing a player's score?
Re: IsPlayerScore? -
Mr.Anonymous - 14.01.2013
pawn Код:
if(GetPlayerScore(playerid) > 50)
{
// Something
}
Re: IsPlayerScore? - Patrick - 14.01.2013
it should be like
pawn Код:
if(GetPlayerScore(playerid) >= 50)
{
//Spawn NRG Code here
}
Re: IsPlayerScore? -
California_ - 14.01.2013
Thank you Mr.Anonymous I +REP You and [HRD]Mar1
Re: IsPlayerScore? -
martin3644 - 14.01.2013
You can Increase your score with this:
pawn Код:
public Score()
{
for(new i = 0;i != MAX_PLAYERS;++i)
{
SetPlayerScore(i, GetPlayerScore(i)+1);
}
return 1;
}