How to give 1 point every minute?
#1

I don't even know where to start on this one... Thanks in advance for your help.
Reply
#2

1 point every minute? Explain more please
Reply
#3

1 Point = 1 Score you mean ?
Reply
#4

Ya sorry, by point I meant score. I want to somehow make a script that gives the player one score every minute that they are playing on the server... is that possible?
Reply
#5

Yes, try to use a timer that will works
Reply
#6

set it to every minute..

https://sampwiki.blast.hk/wiki/SetTimer



https://sampwiki.blast.hk/wiki/SetPlayerScore

and when its up replace..............

Код:
public message()
{
	print("1 second has passed.");
}
With..........

Код:
public message(playerid)
{
	SetPlayerScore(playerid, GetPlayerScore(playeridid) + 1);

}
Reply
#7

pawn Код:
SetTimer("PlayerScore", 60000, 1);// this is the timer
And im thinking for the update...

pawn Код:
public DollahScoreUpdate()
{
new PlayerScore = GetPlayerScore(playerid, Float:score)
SetPlayerScore(playerid, score += 1)
return 1;
}
I don't know if this is correct, or how to put this together, but this is a start.


EDIT: Im a fail
Reply
#8

How about this?

Put this Above main();
Код:
forward PointScoreUpdate(playerid);
Put this Somewere on in the Code:
Код:
public PointScoreUpdate(playerid)
{
new Score = GetPlayerScore(playerid);
SetPlayerScore(playerid,Score+1);
return 1;
}
This Under GamemodeInit
Код:
SetTimer("PointScoreUpdate",60000,1);
regards
[GM]The_Don
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)