Jump to content
  • 0

Sistem /bonus


OscarJoaca

Question

Problema intalnita (descriere): Vreau sa fac ca playerii noi cand intra sa dea /bonus si sa primeasca level 2 si 10.000$
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu): -
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da, am cautat pe net cum sa fac, dar nu am gasit, tin sa mentionez ca am gamemode-ul Saints.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Doamne, am mai spus de o gramada de ori : aici nu se cer scripturi, dar , ca sa nu mai aud ca suntem bulangii si ne credem prea smecheri si nu stiu ce, uite aici comanda de bonus . O modifici dupa cum ai tu variabilele definite in gamemode-ul tau si ti-o pui pe procesatorul tau de comenzi, eu ti-o fac in strcmp .

 

if(strcmp(cmd, "/bonus", true) == 0) // O adaptazei pentru procesatorul tau de comenzi sau lasi asa daca folosesti strcmp .
{
    PlayerInfo[playerid][pLevel] = 2; // Aici inlocuiesti cu variabila ta cu care citesti level-ul .
    GivePlayerMoney(playerid, 200000);
    SendClientMessage(playerid, -1, "Ai primit bonus 200k + level 2 !"
}

Succes ! :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.