-
Posts
68 -
Joined
-
Last visited
Everything posted by -Blaze-
-
Yes , I did , but none of them seemed to be the right one.
-
hey , so i'm trying to change the style of the pistol. i want the player to be able to hold it with both hands, just as he holds the Deagle. i tried setWeaponProperty , but the right one doesn't exist. Any idea on how i can do this?
-
in the script , search for the part setPedAnimation. and set a timer to stop the animation in 2 secs. setPedAnimation( thePlayer, false)
-
It doesn't move in when the player has downloaded , but it moves out when he has logged in. well , it's easy to add the move in when download is done. I can do that .
-
thanks ImSteady , the second one worked. Yes TAPL , realized that when i tried it . Umm, I lose my last shot when I aim and press tab. Is there a way to stop that?
-
you mean something like this? function donttakemygun() local currentweapon = getPedWeapon (getLocalPlayer()) local currentammo = getWeaponAmmo (currentweapon) if (currentammo < 2) then toggleControl ("fire", false ) -- disable the fire key end end addEventHandler("onClientRender", getLocalPlayer(), donttakemygun) or function donttakemygun() local currentammo = getPedTotalAmmo (getLocalPlayer()) if (currentammo < 2) then toggleControl ("fire", false ) -- disable the fire key end end addEventHandler("onClientRender", getLocalPlayer(), donttakemygun) none of them seem to work.
-
well , theres gotta be another way too right?
-
i could do that , but then the ammo would show as "1" in the HUD , which i don't want. Thanks anyways.
-
hey , i'm trying to make a code in which a weapon is not taken from a player when the weapons ammo reaches 0. if it is possible , how?
-
Hello Mates, today i plan to sell a login panel i made sometime ago because i need some sugar to host a server. well, here are it's pictures. login section - http://imgur.com/QpfBnuA register section - http://imgur.com/YxKXsRI staff section - http://imgur.com/WJk81as news section - http://imgur.com/qEKBIEv it includes a login , register , staff , news/updates, N/A group. you can add your group to N/A if you like. it's got a moveing cam ( as background ) at the back. it's a lot of hard work , so ill keep the starting price as 19$ , if anyone's interested , PM me.
-
Hello, i was working on a mission , but i'm having problems with a marker . Maybe you know where i've gone wrong. so , a marker gets created on the Server Side when a player accepts the mission , and here is the client side. local timers = { } function progress() local loot = getElementData(source,"lootmark") or false if loot ~= true then return end timers[#timers+1] = setTimer( function () timers[#timers+1] = setTimer(outputChatBox, 1000, 1, "taking supplies - 10%") timers[#timers+1] = setTimer(outputChatBox, 3000, 1, "taking supplies - 20%") timers[#timers+1] = setTimer(outputChatBox, 6000, 1, "taking supplies - 30%") timers[#timers+1] = setTimer(outputChatBox, 9000, 1, "taking supplies - 100%") timers[#timers+1] = setTimer(outputChatBox, 12000, 1, "Mission Passed") end, 1000, 1) end addEventHandler("onClientMarkerHit", root, progress) function noprogress() local loot = getElementData(source,"lootmark") or false if loot ~= true then return end setTimer(outputChatBox, 300, 1, "You left the marker!") if isTimer(timers[1]) then for _ ,v in pairs ( timers ) do killTimer( v ) end end end addEventHandler("onClientMarkerLeave", root, noprogress) so when he hits , the progress %age starts outputting. But when he leaves the marker , i want it to stop. I used kill timer , but doesen't look like it worked. i have set the element data of the marker on the server side as "lootmark"
-
hello people , so, yesterday i made a zombie rank script that shows images in the scoreboard according to the players rank. The images get's drawn in the scoreboard, but the the image is always the same (1.png). Even though i rank up , the image stays the same. Could someone help? exports.scoreboard:addScoreboardColumn('Zombie kills') addEvent("onZombieWasted",true) addEventHandler("onZombieWasted",root, function (killer) givePlayerMoney(killer,20) addPlayerZombieKills(killer) end) function addPlayerZombieKills(killer) local account = getPlayerAccount(killer) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"Zombie kills") if not zombieKills then setAccountData(account,"Zombie kills",0) end setAccountData(account,"Zombie kills",tonumber(zombieKills)+1) end addEventHandler("onPlayerLogin",root, function () local account = getPlayerAccount(source) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"Zombie kills") if zombieKills then setElementData(source,"Zombie kills",tostring(zombieKills)) else setElementData(source,"Zombie kills",0) end end) ------------------------------------------------------------------------------------------------------------------ addEventHandler("onPlayerSpawn",root, function() local account = getPlayerAccount(source) local zombiekills = getAccountData(account,"Zombie kills") or 0 if (zombiekills >= 0) and (zombiekills <= 4) then setAccountData ( account, "icon", ":myranks/img/1.png" ) elseif (zombiekills >= 5) and (zombiekills <= 99) then setAccountData ( account, "icon", ":myranks/img/2.png" ) elseif (zombiekills >= 100) and (zombiekills <= 249) then setAccountData ( account, "icon", ":myranks/img/3.png" ) elseif (zombiekills >= 250) and (zombiekills <= 499) then setAccountData ( account, "icon", ":myranks/img/4.png" ) elseif (zombiekills >= 500) and (zombiekills <= 999) then setAccountData ( account, "icon", ":myranks/img/5.png" ) elseif (zombiekills >= 1000) and (zombiekills <= 1499) then setAccountData ( account, "icon", ":myranks/img/6.png" ) elseif (zombiekills >= 1500) and (zombiekills <= 1999) then setAccountData ( account, "icon", ":myranks/img/7.png" ) elseif (zombiekills >= 2000) and (zombiekills <= 2999) then setAccountData ( account, "icon", ":myranks/img/8.png" ) elseif (zombiekills >= 3000) and (zombiekills <= 3999) then setAccountData ( account, "icon", ":myranks/img/9.png" ) elseif (zombiekills >= 4000) and (zombiekills <= 4999) then setAccountData ( account, "icon", ":myranks/img/10.png" ) elseif (zombiekills >= 5000) and (zombiekills <= 5999) then setAccountData ( account, "icon", ":myranks/img/11.png" ) elseif (zombiekills >= 5000) and (zombiekills <= 5999) then setAccountData ( account, "icon", ":myranks/img/12.png" ) elseif (zombiekills >= 6000) and (zombiekills <= 6999) then setAccountData ( account, "icon", ":myranks/img/13.png" ) elseif (zombiekills >= 7000) and (zombiekills <= 7999) then setAccountData ( account, "icon", ":myranks/img/14.png" ) elseif (zombiekills >= 8000) and (zombiekills <= 8999) then setAccountData ( account, "icon", ":myranks/img/15.png" ) elseif (zombiekills >= 9000) and (zombiekills <= 10000000) then setAccountData ( account, "icon", ":myranks/img/16.png" ) end end ) --Server Two-- exports.scoreboard:addScoreboardColumn("Rank",getRootElement(),1,40,"Rank") function scoreLevel () local account = getPlayerAccount(source) local icon = tonumber(getAccountData(account,"Icon")) or "1" if isGuestAccount ( account ) then setElementData(source, "Rank",":myranks/img/1.png") else setElementData(source, "Rank", ":myranks/img/"..tostring(icon)..".png" ) end end addEventHandler("onPlayerSpawn", getRootElement(), scoreLevel)
-
you can also use this resource, https://community.multitheftauto.com/index.php?p=resources&s=details&id=7858
-
in short , you can use this https://community.multitheftauto.com/index.php?p=resources&s=details&id=7766 and tadaa , you're done. you can edit it to the way you want it to show.
-
well Drakath , even i wanted to save some stuff just like you. Apparently it is not possible and this kind of thing isn't discovered yet.
-
function openClose() regOn = guiCreateWindow(236, 410, 351, 110, "Register at our website!", false) guiWindowSetSizable(regOn, false) regNote = guiCreateLabel(15, 25, 317, 61, "Sorry, our server is currently under construction, however\nyou can apply online,\n\n[url=http://www.SoonAvailable.com]http://www.SoonAvailable.com[/url]", false, regOn) closeMe = guiCreateButton(300, 80, 42, 20, "Close", false, regOn) if bRegister then guiSetVisible( regOne, true) else if closeMe then guiSetVisible( regOne, false) end end end addEventHandler("onClientGUIClick", getRootElement(), openClose) use if source == bRegister and elseif source == closeMe.
-
Great Job!! I made something like this , but using GUI images. I perfectly understand , you've gone through a lot ;D . Keep up the good work.