Jump to content
  • 0

Am o problema la job skill


VenoMarius ERROR404

Question

2 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0
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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.