30.01.2013, 08:27
hi, well I want the function TogglePlayerClock, dying a user forward 6 hours, for example it is at 10am, thanks.
public OnPlayerDeath(playerid, killerid, reason)
{
new hours, minutes;
GetPlayerTime(playerid, hours, minutes);
TogglePlayerClock(playerid, 0);
SetPlayerTime(playerid, (hours - 6), minutes);
return 1;
}
public OnPlayerSpawn(playerid)
{
TogglePlayerClock(playerid, 1);
return 1;
}