Jump to content
  • 0

Verificari Slot-uri

Negrici Rares


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

3 answers to this question

Recommended Posts

Join the conversation

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

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.