SA-MP Forums Archive
How can I change Jafet Macario's RP Script Level system? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How can I change Jafet Macario's RP Script Level system? (/showthread.php?tid=293283)



How can I change Jafet Macario's RP Script Level system? - seanny - 27.10.2011

Hello, What do I need to change in order for Jafet Macario's Basic Roleplay Script Level system to be changed into a Playing Hour System?


Re: How can I change Jafet Macario's RP Script Level system? - =WoR=Bruno - 27.10.2011

I dont even know how jafet's Macario level system works...as half of the comunity...
a link to it maybe? ^^


Re: How can I change Jafet Macario's RP Script Level system? - seanny - 27.10.2011

pawn Код:
public SyncTime()
{
    new string[64];
    new tmphour;
    new tmpminute;
    new tmpsecond;
    gettime(tmphour, tmpminute, tmpsecond);
    FixHour(tmphour);
    tmphour = shifthour;
    if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
    {
        format(string, sizeof(string), "SERVER: The time is now %d:00 hours",tmphour);
        SendClientMessageToAll(COLOR_WHITE,string);
        ghour = tmphour;
        Payday();
        if (realtime)
        {
            SetWorldTime(tmphour);
        }
    }
}
pawn Код:
public Payday()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new nxtlevel;
            nxtlevel = PlayerInfo[i][pLevel]+1;
            new string[128];
            format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck");
            GameTextForPlayer(i, string, 5000, 1);
            new payday = nxtlevel*1000;
            GivePlayerCash(i,payday);
            PlayerInfo[i][pExp]++;
        }
    }
    return 1;
}