Score &money - 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 &money (
/showthread.php?tid=165107)
Score &money -
Shockey - 03.08.2010
Guys plz help me can someone tell me or make it for me I
want I
so every 10mims uyou get a message saying
"Thankyou For Playing The Server Heres $5000 & +1 score"
and you get $5000 and 1 score
Re: Score &money -
Mauzen - 03.08.2010
Start a 10-min-timer (SetTimerEx, give the playerid as parameter) in OnPlayerConnect, and kill it in OnPlayerDisconnect.
In the timer func, use SendClientMessage, GivePlayerMoney, and SetPlayerScore.
Re: Score &money -
V1ceC1ty - 03.08.2010
pawn Код:
public OnPlayerSpawn(playerid)
{
SetTimer("PocketMoney", 600000, true);
return 1;
}
forward PocketMoney();
public PocketMoney()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new pMoney, pScore;
GetPlayerMoney(pMoney);
GetPlayerScore(pScore);
GivePlayerMoney(i, pMoney+5000);
SetPlayerScore(i, pScore+1);
}
}
Re: Score &money -
Shockey - 03.08.2010
Thx vice city