
//_Dragon
Members-
Posts
214 -
Joined
-
Last visited
Everything posted by //_Dragon
-
check the first script u'll see this local hex = string.format("#%.2X%.2X%.2X", r, g, b) -- converts R, G, B to HEX value outputChatBox("(Local) "..hex..name..": i want made it here
-
No vehicle wanna get from F1 Only vehID's 520 & 432 & 425 I think the problem is in aclGetGroup("Everyone")) should be added ? if vehID == 520 or vehID == 432 or vehID == 425 then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Warden")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Girl")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Vip")) then vehicle = createVehicle(vehID, vx, vy, vz, 0, 0, vrot) else if(getPlayerMoney(source) >= 25000) then takePlayerMoney(source, 25000) vehicle = createVehicle(425, vx, vy, vz, 0, 0, vrot) else outputChatBox("You dont have enought money ($25,000)", source, 255, 0, 0, true) return false end end end
-
I dont think so How to getplayernametagcolor i mean local hex
-
I'm not a good scripter , Oly i'm still 39% Anyway this what i do if vehID == 520 or vehID == 432 then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then vehicle = createVehicle(vehID, vx, vy, vz, 0, 0, vrot) else outputChatBox("You're not allowed to spawn this vehicle", source, 255, 0, 0, true) end else if(getPlayerMoney(source) >= 25000) then takePlayerMoney(source, 25000) vehicle = createVehicle(425, vx, vy, vz, 0, 0, vrot) else outputChatBox("You dont have enought money (25000$)", source, 255, 0, 0, true) end end
-
I want replace my sound reload.mp3 (l26 local sound = playSound("reload.mp3") to sound shooting Like this video Listen the sound
-
Dude ur script has worke for all vehicle's F1 [ bikes , cars , Emergency , Aircraft .. ] I only want to make it for 425
-
Dude little problem I want make the bought only for player & for admin can get it free with out buying the vehicle It's possible ?
-
Dude u said before try to make the script & i help u but i creat the script & i have a little bug & u fixe it anyway thanks dude !
-
!! Anyone can fixe it !?
-
Nah dude i can i need only to add something i think i must change localmessage to chatbox Help ?
-
Help !!
-
Dude i made this topic for fixe my mod not for insulting or ditrubing
-
.
-
Because no one can see it so i decide to creat new topic Any one can fixe it ?
-
. Anyone help to fixe it ??
-
When i do some command's chatbox like :/disconnect /quit /nick ... this pic http://imgur.com/uPtiTqN will show yous the problem check it first Idk what is the problem function localMessage(thePlayer, cmd, ...) local message = table.concat({ ... }, " ") local name = getPlayerName(thePlayer) local r, g, b = getPlayerNametagColor(thePlayer) local hex = string.format("#%.2X%.2X%.2X", r, g, b) -- converts R, G, B to HEX value outputChatBox("(Local) "..hex..name..": #ffffff"..message, getRootElement(), 255, 255, 0, true) end addCommandHandler("Local", localMessage)
-
Noo dude when i shoote i listen the normal sound rhino & after 7sec i listen the sound (reload.mp3) this sound (reload.mp3) i add it in script for replacing the normal sound's rhino shoote
-
I make this but doesnt work i need to make it in fr_server.lua. addEvent("buyHunter",true) addEventHandler("buyHunter",root, function() if ( getPlayerMoney (source) >= 25000 ) then takePlayerMoney(source, 25000) vehicle = createVehicle(Hunter, vx, vy, vz, 0, 0, vrot) else outputChatBox('You successfully buy Hunter', source, 255, 0, 0 ) end end)
-
i will not answer just if want to distrub me is better to leave my topic
-
i need code from wiki about buying vehicle Help me to do it dude really i need this
-
Anyone help ?
-
When i shoot i listen the normal song's shooting rhino & after 8sec i list the reload.mp3 I want replace reload.mp3 ( mod sound ) with normal son shooting rhino there is the script function toggleRhino() if fired == false then if isPedInVehicle ( localPlayer ) and not isCursorShowing() then local veh = getPedOccupiedVehicle ( localPlayer ) if (veh) then if ( getElementModel ( veh ) == 432 ) then fired = true local turX, turY, turZ = getElementPosition(veh) local cx,cy,cz = getVehicleComponentPosition( veh, "misc_a" ) local x, y, z = getVehicleComponentPosition( veh, "misc_c" ) local barrelX, barrelY, barrelZ = getPositionFromElementOffset(veh,cx,cy,cz) local muzzleX, muzzleY, muzzleZ = getPositionFromElementOffset(veh,x,y,z) local velX = (muzzleX - barrelX) /range local velY = (muzzleY - barrelY) /range local velZ = (muzzleZ - barrelZ) /range local vx, vy, vz = getElementVelocity(veh) setElementVelocity (veh, vx+(((velX/3)*(-1))/50), vy+(((velY/3)*(-1))/50), vz+(((velZ/3)*(-1))/50) ) bullet = createProjectile(veh, 21, muzzleX, muzzleY, muzzleZ, 2, nil, 255,255,255, velX, velY, velZ) createExplosion(turX, turY, turZ-10, 8, false, 0.5, false) removeEventHandler("onClientRender", root, reloadFinished) drawHandler = nil start = getTickCount() drawHandler = addEventHandler("onClientRender", root, reload) time = 3250 soundTimer = setTimer(function() local sound = playSound("reload.mp3") setSoundVolume(sound, 10) setSoundMaxDistance(sound, 70 ) end, (reloadTime-500), 1) end end end end end
-
Get out i dont care
-
Work perfect dude But i want make some vehicles can player bought them Like hunter == 25000$ i mean when player have 25000$ & he press hunter two cliques he'll get it But for Admin he get it free it's possible ?