
X-SHADOW
Members-
Posts
721 -
Joined
-
Last visited
Everything posted by X-SHADOW
-
So mine work or not if not show /debugscript 3
-
Try this, function findRotation(x1,y1,x2,y2) local t = -math.deg(math.atan2(x2-x1,y2-y1)) if t < 0 then t = t + 360 end return t end function updatePeds () local players = getElementsByType("player") for k, p in ipairs(players) do if not (ped[p] == nil) then local x,y = getElementPosition(p) local px,py = getElementPosition(ped[p]) local a = findRotation(px,py,x,y) setPedRotation(ped[p], a ) end end end setTimer(updatePeds, 500, 5)
-
why using this 2 times ? local x,y,z = getElementPosition(p) local px,py,pz = getElementPosition(ped[p])
-
--serverSide addCommandHandler("createped", function(player, cmd, model) local model = tonumber(model) if model then local x, y, z = getElementPosition(player) local rotation = getPedRotation(player) local ped = createPed(model, x, y, z, rotation, true) triggerClientEvent('onPedWalk', root, ped) else outputChatBox("Error: Ped was not created due to invalid model.", player, 255, 0, 0, false) end end ) ---clientSide local peds = {} addEvent("onPedWalk", true) addEventHandler("onPedWalk", root, function(ped) table.insert(peds, ped) setPedControlState(ped, 'walk', true) setPedControlState(ped, 'forwards', true) end)
-
This is my script for admin or any one select what you want .. --- for admin only ---serverSide function show () local acc = getAccountName(getPlayerAccount( source)) if isObjectInACLGroup('user.'..acc, aclGetGroup('Admin')) then toggleControl("radar", false) outputChatBox('Admin Has Hide the Map',source,255,0,0) else toggleControl("radar", true) outputChatBox('Admin Has Show the Map',source,0,255,255) end addCommandHandler('hide', show) ----- all time hide ---clientSide addEventHandler('onClientResourceStart', resourceRoot, function() toggleControl("radar", false) end) end
-
i think he want like this addEventHandler('onClientResourceStart', resourceRoot, function(uPlayer) if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) and getPlayerName(uPlayer) == 'damian' then end end)
-
Yeah Forget about that Thank's Castillo .
-
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) if getElementData(killer, "Zombie kills") == 5 then outputChatBox ('Achievement unlocked. and you got sepical weapon',killer,255,255,0)--defined the msg sent to who ? giveWeapon ( killer, 31, 200 )--- give him M4 With 200 ammo =D else outputChatBox('Keep on kill to unlocked the Achievement and get your sepical weapon',killer,255,255,0)--speical add =D end end
-
Make it server-Side on meta.xml local Skinmarker = createMarker(919.59997558594, -1004.299987793, 37, "cylinder", 1.0, 33, 33, 33, 255) -- umkleide local theTeam = createTeam( "FBI", 31, 31, 31 ) addEventHandler("onMarkerHit", Skinmarker, function(hitElement) if getElementType(hitElement) ~= 'player' then return end if not(isFBI(hitElement)) then return end setElementModel(hitElement, 286) setPlayerTeam(hitElement, theTeam) end) function isFBI(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "FBI" ) ) then return true; else return false; end end
-
Alex even that well not fix the bug =D
-
HaHa TAPL This well be useless Any player type this and no arena started it well be flooding HaHa
-
if i put source soldsnake say source not defined if i put localPlayer you say use source insted i dont get
-
Darken your code is nice and orgnized but can you show me my errors ?
-
This is organized Code ---serverSide addEvent('onDkh1', true) addEventHandler('onDkh1', root, function() spawnPlayer (localPlayer, 548.66711425781, -1427.5430908203, 16.1328125) outputChatBox('You have been warped to dkhl area',source,0,255,0) end) --clientSide addEventHandler('onClientGUIClick' ,root, function() if ( localPlayer == GUIEditor_Button[12] ) then triggerServerEvent('onDkhl', localPlayer) end end)
-
Server-Side function what () local why = createTeam ('Criminals') if ( why ) then local go = getTeamFromName( 'Criminals') if ( go ) then setPlayerTeam( source, go ) outputChatBox('You Are Now Criminal ',source,255,255,0) end end end addCommandHandler("criminal", what)
-
guiGetText === > triggerServerEvent i think ?
-
--on hit the map ? addEvent('onClientResourceStart', resourceRoot, function() if (localPlayer == 'Here The variable') then toggleControl (localPlayer, 'sprint', false) end end) ---or every time ? addEventHandler('onClientResourceStart', resourceRoot, function() toggleControl (localPlayer, 'fire', false) end) Updated Again .
-
تابل يرحم امك ترا مو كل الناس اغبياء ومسوي فاهم تبي نطلع مواضيعك الاوله سارق كود وتبي يساعدونك وقفلو عليك الموضوع خلنا ساكتين على الاقل انا احاول اساعد ...