SA-MP Forums Archive
Script Help (rep+++) - 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: Script Help (rep+++) (/showthread.php?tid=323139)



Script Help (rep+++) - boyan96 - 04.03.2012

How i can make if the player is play 1 hours in the server to give him first rank
Rank 0) This will be your starter rank.
Rank 1 + $1000) After 1 hour of online overall.
Rank 2 + $2500) After 5 hours of online overall.
Rank 3 + $3500) After 10 hours of online overall.
Rank 4 + $5000) After 15 hours of online overall.
Rank 5 + $6500) After 25 hours of online overall.
Rank 6 + $7500) After 40 hours of online overall.
Rank 7 + $9500) After 55 hours of online overall.
Rank 8 + $12000) After 75 hours of online overall.
Rank 9 + $15000) After 90 hours of online overall.
Rank 10 + $25000) After 100 hours of online overall.
Like This FS


Re: Script Help (rep+++) - Walsh - 04.03.2012

Under OnPlayerConnect you would set a timer for one hour, then once that hour is up give them the first rank.

Example.
pawn Код:
new rank[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
    SetTimer("GiveFirstRank",60*1000*60,false);
    return 1;
}
forward(GiveFirstRank(playerid))
public GiveFirstRank(playerid)
{
    rank[playerid] = 1;
    SendClientMessage(playerid,-1,"You have reached Rank 1.");
    return 1;
}
That is just a very basic run down. To get what you want, you need a saving system, and you need to define variables that will hold a player's information.


Re: Script Help (rep+++) - boyan96 - 05.03.2012

and can we make it