Jump to content

Question

Posted (edited)

Cand faci prea mult skil apare asa si iti ia din banii in loc sa iti dea.

unknown.png

Dupa skill 119 se baguieste cum il fac la skill 120 sa zica ca ai skill maxim si sa nu iti mai dea banii pe minus si nici skilu ?

Edited by VenoMarius ERROR404

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

Pur și simplu pui o variabila ce o setezi cu skill 120, ca sa îți blocheze skilul si sa nu mai treacă de 120. 
Iar cu banii la fel, poți Adaugă : givePlayerCash(playerid) += 12345;

setezi tu suma pe care o vrei, si Primești tot timpul la skill suna respectiva. Mai sus este un exemplu, depinde pe ce structura este construit gamemodeul. 

Edited by s4uriK.Official
  • Like 1

                     

  Serverul meu de Discord: Click aici       a7DfKP7.gif                                                                      FGIfknL.gif

k35T5Nb.png                                                                                                                                                                                                                                                                                                I0aS856.gif

  • 0
Posted (edited)
13 hours ago, s4uriK.Official said:

Pur și simplu pui o variabila ce o setezi cu skill 120, ca sa îți blocheze skilul si sa nu mai treacă de 120. 
Iar cu banii la fel, poți Adaugă : givePlayerCash(playerid) += 12345;

setezi tu suma pe care o vrei, si Primești tot timpul la skill suna respectiva. Mai sus este un exemplu, depinde pe ce structura este construit gamemodeul. 

si cum fac sa blockeze skilul la 120 ?

 

function JobProgress(playerid) {
    new string[128];    
    if(GetPlayerSkill(playerid) == 5) format(string, sizeof(string), "Progres job %s - (skill maxim)", JobInfo[PlayerInfo[playerid][pJob]][jName]);
    else format(string, sizeof(string), "Progres job %s: %d/%d (%d necesare pentru urmatorul skill)", JobInfo[PlayerInfo[playerid][pJob]][jName], JoPlayPoints(playerid), GetNeedPoints(playerid, PlayerInfo[playerid][pJob]), GetNeedPoints(playerid, PlayerInfo[playerid][pJob])-JoPlayPoints(playerid));
    SCM(playerid, COLOR_YELLOW, string);
    return true;
}

Edited by VenoMarius ERROR404

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.