Score question
#1

Can someone help me with a script that increase player's score with 1 score point each hour?
Tanks!
Reply
#2

Look Here: http://forum.sa-mp.com/showthread.ph...ght=Score+evry
Reply
#3

tanks a lot xD
Reply
#4

Or if you couldn't get that one working due to error-ish code:

pawn Код:
public OnPlayerConnect(playerid)
{
  SetPVarInt(playerid, "scoreTimer", SetTimerEx("GivePlayerHourlyScore", 60 * 60 * 1000, 1, "i", playerid));
  return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
  KillTimer(GetPVarInt(playerid, "scoreTimer"));
  return 1;
}

forward GivePlayerHourlyScore(playerid);
public GivePlayerHourlyScore(playerid)
{
  GivePlayerScore(playerid, GetPlayerScore(playerid) + 1);
}
Should work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)