How can I have a minimum of score? - 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: How can I have a minimum of score? (
/showthread.php?tid=326742)
How can I have a minimum of score? -
OleKristian95 - 18.03.2012
I want the score to stop decrease when it has reached 0 but I dont know how to script it, could someone help please?
Re: How can I have a minimum of score? -
Shabi RoxX - 18.03.2012
This ??
pawn Код:
if(GetPlayerScore(playerid) == 0)
{
SetPlayerScore(playerid,0);
}
Re: How can I have a minimum of score? -
OleKristian95 - 18.03.2012
Quote:
Originally Posted by Shabi RoxX
This ??
pawn Код:
if(GetPlayerScore(playerid) == 0) { SetPlayerScore(playerid,0); }
|
So its that easy
ty
Re: How can I have a minimum of score? -
OleKristian95 - 18.03.2012
Aha I see ty for helping
But where in the pawn code should I put in this?
Re: How can I have a minimum of score? -
Ironboy - 18.03.2012
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
//code here
return 1;
}
Re: How can I have a minimum of score? -
OleKristian95 - 18.03.2012
Quote:
Originally Posted by Ironboy
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { //code here return 1; }
|
Thanks alot
Tested and works.