-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
What are you trying to do? createTeam is server side only.
-
Post the script.
-
There no function with this name in Gang System, even if it exist you will need to use export. Use this instead: getElementData(p, "gang")
-
مابات لقيا تجي مع مابات مود تكتيك http://bpb-team.ru/star-tR/files/maps.zip
-
This problem from ACL You will find this in ACL "command.blow" access="false"> change it to "command.blow" access="true"> That's for admin panel blow command, it has nothing to do with blow function. I haven't say this has anything to do with blow function, it's about the command itself. if the command was blocked in ACL, you will not be able to use it without right, that is the reason why the script doesn't blow the vehicle.
-
This problem from ACL You will find this in ACL "command.blow" access="false"> change it to "command.blow" access="true">
-
function setTeams() setPlayerTeam(source, getTeamFromName("Off Duty Workers")) end addEvent("onPlayerClikin", true) addEventHandler("onPlayerClikin", root, setTeams) function setTeam() setPlayerTeam(source, getTeamFromName("Unemployed")) setElementData(source, "Occupation", "Unemployed") end addEvent("onPlayerCliking", true) addEventHandler("onPlayerCliking", root, setTeam)
-
-- Client Side -- GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(0.268,0.2667,0.5148,0.6069,"Select",true) guiSetAlpha(GUIEditor_Window[1],1) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Button[1] = guiCreateButton(33,141,239,113,"Blue",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(386,148,234,109,"Red",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(37,272,255,71,"you get mp4 m5 sniper teargas rpg and ak47",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(354,271,270,23,"you get mp4 m5 sniper heat-seeking and satchel",false,GUIEditor_Window[1]) function Show() guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end addEvent("ShowSelect", true) addEventHandler("ShowSelect", root, Show) function teamSelect() if source == GUIEditor_Button[1] then triggerServerEvent("setTeam", localPlayer, "Blue") guiSetVisible(GUIEditor_Window[1], false) showCursor(false) elseif source == GUIEditor_Button[2] then triggerServerEvent("setTeam", localPlayer, "Red") guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end addEventHandler("onClientGUIClick", root, teamSelect) -- Server Side -- function createTeamsOnStarts() teamBlue = createTeam("Blue", 0, 0, 22) teamRed = createTeam("Red", 255, 0, 0) end addEventHandler("onResourceStart", resourceRoot, createTeamsOnStarts) function setTeams(Team) if Team == "Blue" then setPlayerTeam(source, teamBlue) giveWeapon(source, 34, 10000) giveWeapon(source, 35, 3) giveWeapon(source, 17, 5) giveWeapon(source, 29, 10000) giveWeapon(source, 30, 1000) giveWeapon(source, 31, 1000) elseif Team == "Red" then setPlayerTeam(source, teamRed) giveWeapon(source, 34, 10000) giveWeapon(source, 36, 3) giveWeapon(source, 39, 5) giveWeapon(source, 29, 10000) giveWeapon(source, 30, 1000) giveWeapon(source, 31, 1000) end end addEvent("setTeam", true) addEventHandler("setTeam", root, setTeams) function abc() triggerClientEvent(source, "ShowSelect", source) end addEventHandler("onPlayerLogin", root, abc)
-
-- Server Side -- setWeaponProperty(27, "pro", "maximum_clip_ammo", 1000)
-
function stopCameraOnPlayerLogin() setCameraTarget(source) showChat(source,true) end addEventHandler("onPlayerLogin", getRootElement(), stopCameraOnPlayerLogin)
-
-- Server Side -- addEvent("BuySound",true) addEventHandler("BuySound", root, function() if (getPlayerMoney(source) >= 100) then takePlayerMoney(source,100) local name = getPlayerName(source) triggerClientEvent(source, "xxx", source) outputChatBox("#FFF000*"..name.." Buy Sound On Shop Panel !", root, 255,0,0,true) else outputChatBox("Your Not Have Money To Sound", source, 255,0,0,true) end end) -- Client Side -- addEvent("xxx",true) addEventHandler("xxx", root, function() playSound("nshed.mp3") end)
-
function cry_baby() to function cry_baby(source)
-
الصوت تبيه يشتغل عند الي ضغط الزر فقط أو عند كل السيرفر؟
-
yourname = guiCreateLabel(5,188,555,21,"Your Name : N/A",false,info) guiLabelSetColor(yourname,0,255,0) function updateName() if guiGetVisible(info) then guiSetText(yourname, "You Name : "..getPlayerName(localPlayer)) end end addEventHandler("onClientRender", root, updateName)
-
استخدم createMarker setElementPosition [ مرتين ] واستخدم هالحدث في كل مرة onMarkerHit انا ما اعرف اسوي كودات لو تسويه ليه يكون احسن تعلم
-
function zomb(posX, posY, posZ) exports["slothBot"]:spawnBot(posX, posY, posZ, 0, 10, 0, 0, Zombies, 0, "hunting", true) -- Zombies is defined? it should be a team element. end addEventHandler("onPlayerSpawn", root, zomb)
-
addEventHandler("onPlayerWasted", function() for i, att in ipairs (getAttachedElements(source)) do if (getElementType(att == "blip") then destroyElement(att) end end end)
-
Hello You love your mother?
-
عدل الكود ليكون كذا {'btn', id='killMe', text='انتحار', onclick=killLocalPlayer}, mainWndShow ثم أبحث عن الفنكشن و ضيف فيه ذا الكود guiSetProperty(getControl(wndMain, 'killMe'), "NormalTextColour", "FF00FF00") ليكون كذا function mainWndShow() guiSetProperty(getControl(wndMain, 'killMe'), "NormalTextColour", "FF00FF00") if not getPedOccupiedVehicle(g_Me) then hideControls(wndMain, 'repair', 'flip', 'upgrades', 'color', 'paintjob', 'lightson', 'lightsoff') end updateTimer = updateTimer or setTimer(updateGUI, 2000, 0) updateGUI(true) end
