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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: score (
/showthread.php?tid=99692)
score -
Eazy_E214 - 29.09.2009
hey
how to make score system?
when i play 1 min then add the score +1
how to do this?
sry for my bad english
Re: score -
Peter_Corneile - 29.09.2009
Here you might get it
*Click Here*
Re: score -
legendario - 29.09.2009
try this
pawn Код:
if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
Re: score -
Eazy_Efolife - 29.09.2009
Quote:
Originally Posted by Peter Corneile [hugu-hosting.co.uk
|
He asked HOW do you make one, not Can you make one.
Quote:
Originally Posted by »ŁegenĐ«
try this
pawn Код:
if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
|
Read his post "when i play 1 min then add the score +1 "
================================================== ======================
================================================== ======================
================================================== ======================
================================================== ======================
Ok Since no body helped, I will be gladly to help you Eazy! ok now follow my steps and you will complete this Score System!
Put this on top of your script:
Now put this on "OnGamemodeInit"
Код:
SetTimer("upscore",60000,true);
Now ALL the way at the bottom of your script, Put this
Код:
public upscore()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
}
}
}
}
Thats it, and thats how you make it Eazy