Hero192
Members-
Posts
512 -
Joined
-
Last visited
Everything posted by Hero192
-
Hey all, How to make the police team if they're shooting with silenced gun a wanted players, the police team will not get stars . How can I do that?
-
Which way is the best in the usage?
-
Hey as you see, I am asking about what's the different if we created the marker with two ways Between this local marker = {} marker[source] = createMarker(1234,2134, 32-1, "cylinder", 2, 0, 120, 231, 150) and this; local marker = createMarker(1234,2134, 32-1, "cylinder", 2, 0, 120, 231, 150)
-
Okay, What about if I want make my I own ACL Management Panel, Which functions I have to use ?
-
Hello again, Is it possible to add new objects in the acl.xml file from in game and refresh it from in game without restarting the server ?
-
Last question, What's the usage of this property weapon_range ?
-
Okay, so 5HPs would be like that? setWeaponProperty ("silenced", "poor", "damage", 5)
-
That's exactly what I want, Can I know which property I've to use in this situation to edit the silenced pistol's damage?
-
I know this function but I don't know which parametre should I use to change the damage and Also may I know which way is better this way or solidesnake's way?
-
Is something like that correct? function silencedDamageSystem(attacker, weapon, _, loss) if attacker and getElementType(attacker) == "player" and weapon == 23 then cancelEvent() local damage = getElementHealth(localPlayer)+loss-5 if damage > 0 then setElementHealth(localPlayer, damage) end end end addEventHandler("onClientPlayerDamage", localPlayer,silencedDamageSystem)
-
Thanks I'll try that , I have a last question, I want to know how to make the silenced gun take 5HPs on each shoot , How to do that?
-
Yeah I got you, I just want an example to works on
-
Awesome ! Thanks alot for this idea, and by the way please How to make the police team when shoots with silenced or nightstick wont become wanted, I didn't find any way to do that maybe you know the solution
-
And how to make the police team when shoots with silenced or nightstick wont become wanted ALSO , I tried that I don't know if I am wrong or right local law = {["Police"]=true, ["SWAT"]=true} addEventHandler("onClientPlayerDamage", localPlayer, function (attacker, weapon) local wanted = getPlayerWantedLevel() if attacker and getElementType(attacker) == "player" and weapon == 23 or weapon == 3 and wanted > 0 then local team = getPlayerTeam(attacker) if getPlayerTeam(attacker) and law [getTeamName(getPlayerTeam(attacker))]) then cancelEvent() end end end)
-
Anyone can gjive a hand please
-
Hey guys again, I want when a Law Team shoot with silenced gun or hit with nightstick the wanted players "Do not take their HPs" and Also the LAW team do not get Stars when they shoot wanted players I tried by doing this code but i fails, Can anyone correct me please? local law = {["Police"]=true, ["SWAT"]=true} function arrestPlayer (attacker, weapon, bodypart) if (attacker and getElementType(attacker) == "player" and attacker ~= source) and (weapon == 23 or weapon == 3) then if (getPlayerTeam(attacker) and law [getTeamName(getPlayerTeam(attacker))]) and getPlayerWantedLevel(source) > 0 then cancelEvent() setPedAnimation(source, "CRACK", "crckdeth2", 4000, false, true, false) end end end addEventHandler("onPlayerDamage", root, arrestPlayer) But It won't make the animation for the hitted wanted player, THANKS ALOT !
-
Hey all, I want to make the silenced gun take 5HPs on each shoot , How to do that?
-
Can you or anyone do that for me please
-
Hey, thanks for your try but you understood me by wrong, I want when i start the resource only guest players who are not logged In who can see the GUI others who are in game can't see the GUI !
-
Please help me and don't ignore this I really need to solve this
-
Can you do what you said in the code? because I am afraid to fails and thanks for your time <3
-
I tried that but Doesn't works, Can anyone help me please? --Client side: function showLoginWindow() guiSetVisible(loginGUI["window"]["login"], true ) end addEvent("showLogin", true) addEventHandler("showLogin", root, showLoginWindow) addEventHandler( "onClientResourceStart", getRootElement(), function () triggerServerEvent("isLoggedIn",localPlayer, localPlayer ) end) --Server side: addEvent("isLoggedIn",true) addEventHandler("isLoggedIn",root, function (client) if isGuestAccount(getPlayerAccount(client)) then triggerClientEvent(client,"showLogin",client) end end)
-
Dude but "isGuestAccount" is only works in server side not client side. Can anyone give me an example
-
Hello everybody, I need help I made a login system but faced a problem, When I restart the login resource the GUI shows to other players, I want When I restart the script only players who don't have accounts or still not logged in, who can see it and players who are in game can't see the login's GUI. please give me a hand ! local loginGUI = {} loginGUI["window"] = {} loginGUI["label"] = {} loginGUI["edit"] = {} loginGUI["button"] = {} loginGUI["checkbox"] = {} loginGUI["tabpanel"] = {} function mainGUI() loginGUI["window"]["login"] = guiCreateWindow((sWidth - 518) / 2, (sHeight - 537) / 2, 518, 537, "Login Panel", false) guiWindowSetSizable(loginGUI["window"]["login"],false) guiSetVisible(loginGUI["window"]["login"],false) loginGUI["label"]["info"] = guiCreateLabel(12, 23, 499, 45, "Welcome", false, loginGUI["window"]["login"]) guiSetFont(loginGUI["label"]["info"], "default-bold-small") guiLabelSetColor(loginGUI["label"]["info"], 255, 0, 0) loginGUI["edit"]["user"] = guiCreateEdit(114, 85, 267, 30, "", false, loginGUI["window"]["login"]) loginGUI["label"]["user"] = guiCreateLabel(34, 91, 71, 24, "Username:", false, loginGUI["window"]["login"]) guiSetFont(loginGUI["label"]["user"], "default-bold-small") loginGUI["edit"]["pass"] = guiCreateEdit(115, 128, 267, 30, "", false, loginGUI["window"]["login"]) guiEditSetMasked(loginGUI["edit"]["pass"], true) loginGUI["label"]["pass"] = guiCreateLabel(34, 133, 71, 24, "Password:", false, loginGUI["window"]["login"]) guiSetFont(loginGUI["label"]["pass"], "default-bold-small") loginGUI["button"]["login"] = guiCreateButton(9, 256, 121, 27, "Login", false, loginGUI["window"]["login"]) loginGUI["label"]["info3"] = guiCreateLabel(16, 182, 314, 22, "Save username and password", false, loginGUI["window"]["login"]) guiSetFont(loginGUI["label"]["info3"], "default-bold-small") loginGUI["checkbox"]["save"] = guiCreateCheckBox(24, 214, 81, 15, "Save", false,false, loginGUI["window"]["login"]) guiSetFont(loginGUI["checkbox"]["save"], "default-bold-small") loginGUI["button"]["register"] = guiCreateButton(145, 256, 121, 27, "Register", false, loginGUI["window"]["login"]) end
-
Hello guyz, I want to make a gui shows when the resource starts only for the players who still not logged in yet , i mean only for Guest account, but i fails, when i start the resource inside the server it shows for all , for the guest and the players who're with their accounts. Can anyone give me an example? MUCH THANKS
