TogglePlayerClock.
#1

hi, well I want the function TogglePlayerClock, dying a user forward 6 hours, for example it is at 10am, thanks.
Reply
#2

EDIT: What are you asking for? Time advances itself by 6 hours when a player dies...? You want it so it DOESN'T go ahead 6 hours or...?

Removing the 6 hour skip on player death:
pawn Код:
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;
}
EDIT #2: Didn't quite understand it, but I'm fairly sure this is what you're asking for.
Reply
#3

I want you not six hours later, that I can be with SetWorldTime?
Reply
#4

EDIT: This code does not work, follow the same time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)