Jump to content

Drug System Help???


SirniNamaz

Recommended Posts

Posted

x,y = guiGetScreenSize() 
guiDrugs = guiCreateWindow(x-285-20,y-253-20,285,253,"F3 - Drug Manager",false) 
lblDrug = guiCreateLabel(17,31,32,16,"Drug:",false,guiDrugs) 
lblAmount = guiCreateLabel(203,31,50,15,"Amount:",false,guiDrugs) 
rdoCannabis = guiCreateRadioButton(15,55,135,17,"Cannabis",false,guiDrugs) 
guiRadioButtonSetSelected(rdoCannabis,true) 
rdoHeroin = guiCreateRadioButton(15,79,135,17,"Heroin",false,guiDrugs) 
rdoCocaine = guiCreateRadioButton(15,104,135,17,"Cocaine",false,guiDrugs) 
rdoLSD = guiCreateRadioButton(15,129,135,17,"LSD",false,guiDrugs) 
rdoEcstasy = guiCreateRadioButton(15,154,135,17,"Ecstasy",false,guiDrugs) 
rdoOpium = guiCreateRadioButton(15,180,135,17,"Opium",false,guiDrugs) 
btnTakeHit = guiCreateButton(39,208,96,30,"Take a Hit",false,guiDrugs) 
btnSell = guiCreateButton(145,208,96,30,"Sell",false,guiDrugs) 
lblCannabis = guiCreateLabel(200,54,54,14,"0",false,guiDrugs) 
guiLabelSetVerticalAlign(lblCannabis,"center") 
guiLabelSetHorizontalAlign(lblCannabis,"center",false) 
lblHeroin = guiCreateLabel(200,76,54,14,"0",false,guiDrugs) 
guiLabelSetVerticalAlign(lblHeroin,"center") 
guiLabelSetHorizontalAlign(lblHeroin,"center",false) 
lblCocaine = guiCreateLabel(200,102,54,14,"0",false,guiDrugs) 
guiLabelSetVerticalAlign(lblCocaine,"center") 
guiLabelSetHorizontalAlign(lblCocaine,"center",false) 
lblLSD = guiCreateLabel(200,127,54,14,"0",false,guiDrugs) 
guiLabelSetVerticalAlign(lblLSD,"center") 
guiLabelSetHorizontalAlign(lblLSD,"center",false) 
lblEcstasy = guiCreateLabel(200,153,54,14,"0",false,guiDrugs) 
guiLabelSetVerticalAlign(lblEcstasy,"center") 
guiLabelSetHorizontalAlign(lblEcstasy,"center",false) 
lblOpium = guiCreateLabel(200,179,54,14,"0",false,guiDrugs) 
guiLabelSetVerticalAlign(lblOpium,"center") 
guiLabelSetHorizontalAlign(lblOpium,"center",false) 
guiSetVisible(guiDrugs,false) 
  
function drugShowHide () 
  if (guiGetVisible(guiDrugs)==false) then 
    guiSetVisible(guiDrugs,true) 
    showCursor(true) 
  else 
    guiSetVisible(guiDrugs,false) 
    showCursor(false) 
  end 
end 
bindKey("F3","down",drugShowHide) 

Can someone make please make script that will save lblHeroin and lblCocaine and others when player disconnects, and load it when he connects (i tried 3 times but failed)

Posted

https://forum.multitheftauto.com/viewtopic.php?f=91&t=46798&sid=1ad4be054f61e0cd6479f64dfdb7a7a1

I just wrote an answer to that topic.. It's easy to modify from that.

http://www.sincitygaming.net - The next generation of gaming!

SinCity Gaming | UltiRace 24/7 - 188.165.199.162:22003

SinCity Gaming | Roleplay Gaming - Beta soon!

SinCity Gaming | Zombie Mode + - 188.165.199.162:22005

Instead of using ip: 188.165.199.162 you can use: sincitygaming.net

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...