Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted (edited)

.Cum fac verificare aici gen daca are numarul maxim de masini personale care este 10 sa nu poata sa cumpere cutia?

YCMD:buyvehiclecrate(playerid, params[],help) {
    if(!PlayerToPoint(3.0,playerid,834.5374,-2261.7124,12.4926)) return SCM(playerid, -1, "Nu esti la crates!");
    if(GetSlots(playerid) >= TotalSlots(playerid)) return SCM(playerid, -1, "Acel player are numarul maxim de vehicule!");
    ShowPlayerDialog(playerid, DIALOG_BUYVCRATES, DIALOG_STYLE_LIST, "Buy vehcicle crate", "Vehicle Crate - {FF0000}1000{FFFFFF}Premium Points\nNormal Crate - {FF0000}300{FFFFFF}Special Points", "Select", "Exit");
    return 1;
}

Edited by Negrici Rares

3 answers to this question

Recommended Posts

  • 0
Posted

Ai deja verificarea if(GetSlots(playerid) >= TotalSlots(playerid)) return SCM(playerid, -1, "Acel player are numarul maxim de vehicule!");

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.