01.09.2011, 07:15
Hello can someone show me the code how to fix the stock [maxexplvl]
maxexplvl function is when it (getplayerlevel, 1) the value of maxexplvl is 1000 then if (getplayerlevel, 2) the value of maxexplvl is 2000 can you guys help me to create the callback code?
i don't know how.. are it look like this?
Код:
public OnPlayerUpdate(playerid) { new string[256]; SetPlayerScore(playerid, GetPlayerLevel(playerid)); if(GetPlayerExp(playerid) >= maxexplvl) { GivePlayerLevel(playerid, 1); format(string, sizeof(string), "* Congratulations! Your char id had ben increased level to {FFFFFF}-> %d", GetPlayerLevel(playerid)); SendClientMessage(playerid, 0xCCFF00BB, string); GivePlayerExp(playerid, - 1000); } return 1; }
i don't know how.. are it look like this?
Код:
stock maxexplvl(playerid) { if(GetPlayerLevel(playerid, 1) return maxexplvl(1000) }