03.07.2012, 16:11
i want exp system like this.. how i make it on textdraws and 1 level go up on evry 5 hours pleasee help me, how i made it ?
forward 5HoursLevelUp(playerid);
SetTimerEx("5HoursLevelUp", 18000000, true,"i",playerid); // Level up each 5 hours, put on OnPlayerConnect
public 5HoursLevelUp(playerid)
{
PlayerInfo[playerid][pLevel] += 1; // Adds 1 more level to pLevel var (Y_INI saving system)
return 1;
}
new pLevel = PlayerInfo[playerid][pLevel];
gLevel = TextDrawCreate(320.0, 240.0, pLevel); // Well, tweak it as your likeing
TextDrawShowForPlayer(playerid, gLevel); // OnPlayerConnect, also use a TextDraw string updater