09.11.2010, 14:53
Or if you couldn't get that one working due to error-ish code:
Should work
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);
}

