AUtolevel please - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: AUtolevel please (
/showthread.php?tid=67338)
AUtolevel please -
SanaL - 28.02.2009
Autolevel system please godfather mod add system autolevel /buylevel delete or autolevel system pLease
Note: İ english bad sorry
Re: AUtolevel please -
Martin_Smith - 28.02.2009
Ok, ye, i understand you, I have got a similar register system on my Call of duty server and basicly this is how you make it so u rank up without /buylevel:
taken off the main code of /buylevel and replace somewhere udnernath 'onplayerupdate'
Код:
format(string, sizeof(string), "~g~LEVEL UP~n~~w~You Are Now Level %d", nxtlevel);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
PlayerPlayMusic(playerid);
//GivePlayerMoney(playerid, (-costlevel));
PlayerInfo[playerid][pLevel]++;
if(PlayerInfo[playerid][pDonateRank] > 0)
{
PlayerInfo[playerid][pExp] -= expamount;
new total = PlayerInfo[playerid][pExp];
if(total > 0)
{
PlayerInfo[playerid][pExp] = total;
}
else
{
PlayerInfo[playerid][pExp] = 0;
}
}
else
{
PlayerInfo[playerid][pExp] = 0;
}
Код:
new nxtlevel = PlayerInfo[playerid][pLevel]+1;
new costlevel = nxtlevel*levelcost;//10k for testing purposes
new expamount = nxtlevel*levelexp;
so, i probaly missed alot out, so just use that kind of thinking..
Re: AUtolevel please -
SanaL - 28.02.2009
I put here if you make i mod Mode? pleasee ?
upLoad Linq write i mod ?