
nasserdfdd
Members-
Posts
191 -
Joined
-
Last visited
Everything posted by nasserdfdd
-
pls any one help me
-
can u make it cuz i did not understand
-
ok guys i fixed the last script then when i make copied the resource and made anthoer one and i change the cylender location and i hit the cylinder the both cylinder open and no error show in local server this is the script medic server GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(589, 389, 520, 321, "medic job", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(9, 32, 501, 107, "ACCEPT", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(9, 204, 501, 107, "CLOSE", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") end ) function showwindow() guiSetVisible(GUIEditor.window[1],true) showCursor(true) end addEvent("showwin",true) addEventHandler("showwin", getRootElement(), showwindow) function closewindow() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick", root, closewindow) function setpolice() if source == GUIEditor.button[1] then triggerServerEvent ("modPanel:setRole",localPlayer) end end addEventHandler("onClientGUIClick", root, setpolice) client local marker = createMarker ( 476.0654296875, -1765.6552734375, 14.117799758911, "cylinder", 1.5, 255, 255, 0, 170 ) function openwindow(hitPlayer) triggerClientEvent (hitPlayer,"showwin",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",marker,openwindow) createTeam("Medic", 255, 0, 0) function Medic() setElementData(client, "Role", "Medic") end addEvent("modPanel:setRole",true) addEventHandler("modPanel:setRole", root, Medic) police script is same but changed event hanndler server local marker = createMarker ( 500.0654296875, -1765.6552734375, 14.117799758911, "cylinder", 1.5, 255, 255, 0, 170 ) function openwindow(hitPlayer) triggerClientEvent (hitPlayer,"showwin",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",marker,openwindow) createTeam("Police", 255, 0, 0) function Police() setElementData(client, "Role", "Police officer") end addEvent("modPanels:setRolm",true) addEventHandler("modPanels:setRolm", root, Police) client GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(589, 389, 520, 321, "policejob", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(9, 32, 501, 107, "ACCEPT", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(9, 204, 501, 107, "CLOSE", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") end ) function showwindow() guiSetVisible(GUIEditor.window[1],true) showCursor(true) end addEvent("showwin",true) addEventHandler("showwin", getRootElement(), showwindow) function closewindow() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick", root, closewindow) function setpolice() if source == GUIEditor.button[1] then triggerServerEvent ("modPanels:setRolm",localPlayer) end end addEventHandler("onClientGUIClick", root, setpolice) edit:and if i stopped medic job the police jpb won't work but if i stopped police job medic job will be still working
-
lol ok this is the error error : jobw\server.lua:13: ')' excepted near 'officer' error loading script failed: job\server.lua:13: ')' excepted near 'officer'
-
ok guys i have some exports but it give me error jam making it to set player role this is my script this is the script server side local marker = createMarker ( 476.0654296875, -1765.6552734375, 14.117799758911, "cylinder", 1.5, 255, 255, 0, 170 ) function openwindow(hitPlayer) triggerClientEvent (hitPlayer,"showwin",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",marker,openwindow) createTeam("Police", 255, 0, 0) addEvent("modPanel:setRole",true) addEventHandler("modPanel:setRole",root, function (Police officer, player, role) exports["Jobs"]:setPlayerJob(player, role) exports["Info"]:sendGlobalMessage("*MOD* ".. getPlayerName(client) .." has changed the Role of ".. getPlayerName(player) .." to ".. tostring(role) ..".",0,255,0) end) client GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(589, 389, 520, 321, "Want To Be A Police Man?", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(9, 32, 501, 107, "ACCEPT", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(9, 204, 501, 107, "CLOSE", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") end ) function showwindow() guiSetVisible(GUIEditor.window[1],true) showCursor(true) end addEvent("showwin",true) addEventHandler("showwin", getRootElement(), showwindow) function closewindow() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick", root, closewindow) function setpolice() if source == GUIEditor.button[1] then triggerServerEvent ("setTeamNow",localPlayer) end end addEventHandler("onClientGUIClick", root, setpolice) so it give me error
-
hey every one so i have script which set player team ok so i want it also to set role of player so pls help this is the script client GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(589, 389, 520, 321, "Want To Be A Police Man?", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(9, 32, 501, 107, "ACCEPT", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(9, 204, 501, 107, "CLOSE", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") end ) function showwindow() guiSetVisible(GUIEditor.window[1],true) showCursor(true) end addEvent("showwin",true) addEventHandler("showwin", getRootElement(), showwindow) function closewindow() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick", root, closewindow) function setpolice() if source == GUIEditor.button[1] then triggerServerEvent ("setTeamNow",localPlayer) end end addEventHandler("onClientGUIClick", root, setpolice) server local marker = createMarker ( 476.0654296875, -1765.6552734375, 14.117799758911, "cylinder", 1.5, 255, 255, 0, 170 ) function openwindow(hitPlayer) triggerClientEvent (hitPlayer,"showwin",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",marker,openwindow) createTeam("Police", 255, 0, 0) function policeman() local policeteam = getTeamFromName("Police") setPlayerTeam ( source, policeteam ) outputChatBox("You're Now A Police Man!",source,255,0,0) end addEvent( "setTeamNow", true ) addEventHandler( "setTeamNow", root, policeman ) thanks
-
hey all so csf closed there server am i allowed to name my server csf
-
ok can u make it for mei really can't make it
-
hey all so i need a script which should be a cylinder when i enter it a gui will open with two butoons accept and close so if u accept it will set team and roll police or anything i can change if some one can make for free or paid but prefered for free thanks for ur patience
-
Hi all so nvidia and other companies are creating really strong tablet and gat sa is now on android and iOS so can u guys port mta sa or give us the source code and we port it so this all about the topic Thanks. android tablets could run it i thinks about
-
ohh sry i will make new forum
-
CRP Cops 'n' Robbers CNR/RPG Features GANGWARS, DRUGS, Jobs, CNR/RPG Progress ip:mtasa://213.136.80.168:22193 Note:Some of scripts i used of ng but i made some of them
-
there is account called console i want it pass
-
hi all what is the password of console by defult regards, i wish i get answered
-
You don't need to use setElementData Example addEventHandler ( "onPlayerSpawn",root, function() setPedStat ( source, 24, 1000 ) setElementHealth ( source, 200 ) end ) /where do i put this script
-
pls can u add it for me cuz i did not get it
-
this my script where i add local hospitalTable = {} local hospitals = { -- mx, my, mz, tarx, tary, tarz, x, y, z, rot, name [1] = {1218, -1322, 15, 1217, -1322, 15, 1173, -1326, 15, 270, "All Saints Hospital"}, -- All Saints [2] = {2033, -1439, 19, 2033, -1438, 18, 2038, -1411, 17, 130, "Jefferson Hospital."}, --Jefferson [3] = {1254, 352, 21, 1254, 351, 21, 1242, 327, 19, 340, "Red County Hospital."}, -- Red County [4] = {1590, 1862, 12, 1590, 1861, 12, 1609, 1816, 12, 360, "Las Venturas Hospital."}, -- Las Venturas [5] = {-2660, 580, 16, -2660, 581, 16, -2655, 635, 14, 180, "San Fierro Hospital."}, -- San Fierro [6] = {-2181, -2289, 32, -2181, -2290, 32, -2200, -2311, 30, 320, "Angel Pine Hospital."}, -- Angel Pine [7] = {4329.82, 748.048, 21.09, 4325.158, 817.8122, 8.10, 4325.158, 817.8122, 8.10, 180, "Sea Hospital."} -- SeaHospital } function viewTheHospital() local table = findHospital(source) local theMessage = "You have died and been taken to "..table[11] setCameraMatrix(source, table[1], table[2], table[3], table[4], table[5], table[6]) showPlayerHudComponent(source, "all", false) setTimer(finsihHospitalIntro, 4000, 1, source, getElementModel(source), table[7], table[8], table[9], table[10]) end addEventHandler("onPlayerWasted", root, viewTheHospital) function finsihHospitalIntro(player, model, x, y, z, rotation) local wantedLevel = getPlayerWantedLevel(player) if(wantedLevel > 0) then showPlayerHudComponent(player, "all", true) setCameraTarget(player, player) spawnPlayer(player, x, y, z, rotation, model, 0, 0) local points = tonumber(getElementData(player, "CORpolice.wantedPoints")) or 0 exports.CORprison:sendPlayerToPrison(player, points * 1000) return end if (isElement(player)) then fadeCamera(player, false, 0) setTimer(fadeCamera, 500, 1, player, true) setCameraTarget(player, player) showPlayerHudComponent(player, "all", true) spawnPlayer(player, x, y, z, rotation, model, 0, 0) hospitalTable[player] = nil end end function findHospital(plr) if (isElement(plr)) then local theHospital = nil local miniumDistance = 2000 for index, pos in pairs(hospitals) do local px, py, pz = getElementPosition(plr) local x, y = pos[7], pos[8] local distance = getDistanceBetweenPoints2D(px, py, x, y) if (distance < miniumDistance) then theHospital = pos miniumDistance = distance end end hospitalTable[plr] = theHospital return hospitalTable[plr] end end
-
ok so when i maded the script client setElementData(source,"health",250) and meta
-
when i joined the health is 100 not150 or 250
-
setElementData(source,"health",250) when i joined the health is 100 not 250
-
hi all is it possible the defult health 150 not 100
-
hi again today i need little help i have medkit script i want when i use med kit to wait 2 sec then i can use another one local theMarker = createMarker(1176.19, -1339.09, 13.985, "cylinder", 3, 0, 255, 0) addEventHandler("onMarkerHit", theMarker, function(player) if getElementType(player) == "player" then outputChatBox("Type /med to buy 25% of Health", player, 255, 255, 255) end end) addCommandHandler("med", function(player) if getPlayerMoney(player) >= 1500 then local newHealth = getElementHealth(player) + 25 setElementHealth(player, newHealth) takePlayerMoney(player, 1500) outputChatBox("You have bought 25% health for $1,500", player, 0, 255, 0) end end)
-
i all i need speical help in sql in skype i can pay 2-54 if u could help me cuz i have sql script i want it to work in my server cuz i dont know too much about sql i just ned it to work on my server only 1 script i want it on my server skype:jone.cina11