Posts: 108
Threads: 29
Joined: Jul 2010
Reputation:
0
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
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
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.
Posts: 1,896
Threads: 102
Joined: Oct 2008
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);
}
}