-
Posts
30 -
Joined
-
Last visited
Everything posted by 3HAXAPb94
-
Anubhav, map music its not stream this music in map folder for example music.mp3. It playing all times if map starting (onClientMapStarting).
-
Stop map music and play radio. if I stop radio then play map music
-
radioURL1 = "myRadioSTATION" function play () theRadio = playSound(radioURL1) end play () -- if radio dont play I need play map music... function mute () setSoundVolume(theRadio, 0) outputChatBox ("Radio muted") end addCommandHandler ("muteRadio",mute) --if play radio then stop map music but I dont know how to do it function playRadio () outputChatBox ("Radio unmuted") setSoundVolume(theRadio, 1) end addCommandHandler ("playRadio",playRadio)
-
How I can check if playing map music and stream music
-
Hi all. How I can mute just map music not stream music? I want to make setting addCommandHandler /muteRadio then play map music if I write /playRadio then mapmusic stop playing. So anybody help me
-
Nice One Keyl It's really helps for scripting)
-
Thanks Solidsnake now Its work =) "I'm assuming that you have 'posX', 'posY', 'Hvis', 'vis' variables defined already?" yes
-
--Client addEvent ("onUpgradeText",true) addEventHandler ("onUpgradeText",root,weaponBar) function weaponBar(message) if not message then message = "not upgrade" dxDrawRectangle (posX*2+300,posY,250,100, tocolor (0,0,0,150)) dxDrawRectangle (posX*2+300,posY,250,Hvis, tocolor (255,255,255,150)) dxDrawText ("Upgrade",posX*2+300,-(vis)+50-(Hvis),sX,sY,tocolor (255,255,255,255),1.5,"default-bold", "center", "center") dxDrawText (message,posX*2+300,-(vis)+100-(Hvis),sX,sY,tocolor (255,255,255,255),2,"default-bold", "center", "center") end end addEventHandler ("onClientRender",root, weaponBar) --server local luck = math.random(1,5) if luck == 1 then outputChatBox ("barrel ") message = "Barrel" triggerClientEvent ( source, "onUpgradeText", source, message ) giveMeBarrel () elseif luck == 2 then message = "Aura" triggerClientEvent ( source, "onUpgradeText", source, message ) outputChatBox ("you gived AURA(6 sec)") giveMeAura() elseif luck ==3 then message = "Fix" triggerClientEvent ( source, "onUpgradeText", source, message ) outputChatBox ("you vehicle fixed") fixVehicle () elseif luck == 4 then message = "Nitro" triggerClientEvent ( source, "onUpgradeText", source, message ) outputChatBox ("nitro") nitro () elseif luck == 5 then message = "Rocket" triggerClientEvent ( source, "onUpgradeText", source, message ) outputChatBox (" rocket") doShoot() end
-
Guys, but it still not work. Maybe in client somethink bugged?
-
so what i need to do?
-
addEvent ("onUpgradeText",true) addEventHandler ("onUpgradeText",root,weaponBar) function weaponBar(message) if not message then message = "not upgrade" dxDrawRectangle (posX*2+300,posY,250,100, tocolor (0,0,0,150)) dxDrawRectangle (posX*2+300,posY,250,Hvis, tocolor (255,255,255,150)) dxDrawText ("Upgrade",posX*2+300,-(vis)+50-(Hvis),sX,sY,tocolor (255,255,255,255),1.5,"default-bold", "center", "center") dxDrawText (message,posX*2+300,-(vis)+100-(Hvis),sX,sY,tocolor (255,255,255,255),2,"default-bold", "center", "center") end end addEventHandler ("onClientRender",root, weaponBar) client side
-
local luck = math.random(1,5) if luck == 1 then message = "Barrel" triggerClientEvent (source, "onUpgradeText", getRootElement(), message) giveMeBarrel () elseif luck == 2 then message = "Aura" triggerClientEvent (source, "onUpgradeText", getRootElement(), message) giveMeAura() elseif luck ==3 then message = "Fix" triggerClientEvent (source, "onUpgradeText", getRootElement(), message) fixVehicle () elseif luck == 4 then message = "Nitro" triggerClientEvent (source, "onUpgradeText", getRootElement(), message) nitro () elseif luck == 5 then message = "Rocket" triggerClientEvent (source, "onUpgradeText", getRootElement(), message) doShoot() end Its server side PS i use this if player get racepickup
-
Debug empy and still not work...
-
Still not working.
-
--client addEvent ("onUpgradeText",true) addEventHandler ("onUpgradeText",root,weaponBar) function weaponBar(message) if not message then message = "no upgrade" dxDrawRectangle (posX*2+300,posY,250,100, tocolor (0,0,0,150)) dxDrawRectangle (posX*2+300,posY,250,Hvis, tocolor (255,255,255,150)) dxDrawText ("Upgrade",posX*2+300,-(vis)+50-(Hvis),sX,sY,tocolor (255,255,255,255),1.5,"default-bold", "center", "center") dxDrawText (message,posX*2+300,-(vis)+100-(Hvis),sX,sY,tocolor (255,255,255,255),2,"default-bold", "center", "center") end end addEventHandler ("onClientRender",root, weaponBar) --server function someFucntion () message = "Barrel" triggerClientEvent ("onUpgradeText",source,message) end its doesnt work...
-
Hello, I have one problem I cant send text from server side to client side. I want to use dxDrawText I use message = "My text"
-
For my gamemode not need all race pickups just need one racepickup. I will use "repair"
-
So now I have new Question. How to make new racepickup?
-
Thanks. But I now know how I need make. It was be wrong with make createPickup. Now I need make looks like racepickup... Now looking code in race how to make racepickup
-
Thanks.. Now I need make custom pickup for using?
-
Tete, I tested again and this code worked if I createPickup in script. But it doesnt work in map.(if created custom map)
-
I want work with this pickup as element. Destroy element it just for example (for test).
-
Tete, its doesnt work...
-
I want destroy pickup. with model 1242 (armor)
-
This function not work I dont know how to fix it... function pic() for i,pickup in pairs(getElementsByType("pickup")) do local elementID = getElementModel(pickup) if elementID == 1242 then destroyElement (pickup) end end end addEventHandler("onClientResourceStart",resourceRoot,pic)