Jump to content

Cerere tutorial.


VeCksY

Recommended Posts

Vreau sa pun in loc de /buy sau /buygun tasta Y, dar cand o pun merge doar intr-un bussines dar in celalte nu functioneaza.
Va rog ajutatima.
Am folosit asta.

 
    if(newkeys & KEY_YES) {    
    if(PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid, COLOR_WHITE, "You don't have gun license.");
    if(!IsPlayerInRangeOfPoint(playerid, 50.0, 315.9297,-142.9758,999.6016)) return SendClientMessage(playerid, COLOR_WHITE, "Nu esti intr-un bussines!");
    if(GetPlayerInterior(playerid) == 0) return SCM(playerid, -1, "Nu esti intr-un bussines!");
    ShowPlayerDialogEx(playerid,Dialog_gunshop,DIALOG_STYLE_LIST,"Select:","Baseball bat($2,000)\nSD Pistol($3,000)\nDesert eagle($5,000)\nShotgun($8,000)\nMP5($7,000)\nAK47($10,000)\nM4($10,000)","Select","Cancel");

    }

Edited by VeCksY
Link to comment
Share on other sites

 if(!IsPlayerInRangeOfPoint(playerid, 50.0, 315.9297,-142.9758,999.6016))

Funcționează doar într-un singur business, deoarece ai pus să funcționeze tasta Y pentru a cumpăra doar în raza punctului respectiv.

Link to comment
Share on other sites

1 hour ago, matei_ said:


 if(!IsPlayerInRangeOfPoint(playerid, 50.0, 315.9297,-142.9758,999.6016))

Funcționează doar într-un singur business, deoarece ai pus să funcționeze tasta Y pentru a cumpăra doar în raza punctului respectiv.

Multumesc.

Edited by VeCksY
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
Reply to this topic...

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