Witam, posiadam starego DiabloModa 5.9 i mam takie pytanie jak dodać komendę /exp /postac by sprawdzić ile mam nabitego expa lub tez ile gracz ma nabitego expa
Coś jak w nowym Diablo to.
Spoiler
register_clcmd("say /exp", "expInf");
register_clcmd("say_team /exp", "expInf");
public expInf( id ){
if( playerInf[ id ][ currentClass ] == 0 ){
ColorChat( id , GREEN , "%s Nie masz zadnej klasy" , PREFIX_SAY);
}
else{
ColorChat( id , GREEN ,"%s Obecnie posiadasz %i expa potrzebujesz %i czyli brakuje ci %i ( %0.2f%s )" , PREFIX_SAY , playerInf[ id ][ currentExp ] , LevelXP[playerInf[id][currentLevel]], LevelXP[playerInf[id][currentLevel] ] - playerInf[ id ][ currentExp ] , ((float(playerInf[id][currentExp])-float( LevelXP[playerInf[id][currentLevel]-1]))*100.0)/(float(LevelXP[playerInf[id][currentLevel]])-float(LevelXP[playerInf[id][currentLevel]-1])) , "%" );
}
return PLUGIN_HANDLED;
}