
Baseplate
Members-
Posts
1,417 -
Joined
-
Last visited
Everything posted by Baseplate
-
Why you shouldn't make a clanwar with the p0rn| clan
Baseplate replied to SHC//Sniper's topic in Servers
hmm he was playing in =PCP= as I remmeber -
You die motherfucker
-
A:ohh can't be fucked...Of course no Q:HAHAH You're trolling now?
-
Why you shouldn't make a clanwar with the p0rn| clan
Baseplate replied to SHC//Sniper's topic in Servers
I sometimes was playing a a p0rn|(i don't remmeber name) was flamming ALL the players without any exception -
well I won't flam but I don't give a fuck
-
SO Jr10 can you post the full codes?
-
hmm no error but when I play and shoot someone with the Tazer I get down with the Tazzing animation and that who I shooted him dosen't happen nothing to him
-
Peacemaker please shhhh your flamming or I'll eat your dust WTF?!
-
I was reading it and idk what is it talking about....
-
hmm oK I'll post the code Client-side: cooldown = 0 cooldownTimer = nil localPlayer = getLocalPlayer() --function isPD() -- return exports.factions:isPlayerInFaction( localPlayer, 1 ) --end function switchMode() if (getPedWeapon(localPlayer)==24) and (getPedTotalAmmo(localPlayer)>0) then -- has ammo local mode = getElementData(localPlayer, "silencedmode") if mode == 0 then -- tazer mode triggerServerEvent("silencedmode", localPlayer, localPlayer, 1) outputChatBox( "You switched your weapon mode to lethal.", 0, 255, 0 ) elseif mode == 1 -- and isPD() then -- lethal mode outputChatBox( "You switched your weapon to radar gun.", 0, 255, 0 ) triggerServerEvent("silencedmode", localPlayer, localPlayer, 2) elseif mode == 2 or mode == 1 then -- radar gun mode outputChatBox( "You switched your weapon to taser.", 0, 255, 0 ) triggerServerEvent("silencedmode", localPlayer, localPlayer, 0) end end end function bindKeys(res) bindKey("n", "down", switchMode) local mode = getElementData(localPlayer, "silencedmode") if not (mode) then triggerServerEvent("silencedmode", localPlayer, localPlayer, 0) end end addEventHandler("onClientResourceStart", getResourceRootElement(), bindKeys) function enableCooldown() cooldown = 1 cooldownTimer = setTimer(disableCooldown, 3000, 1) toggleControl("fire", false) setElementData(getLocalPlayer(), "silenced:reload", true) end function disableCooldown() cooldown = 0 toggleControl("fire", true) setElementData(getLocalPlayer(), "silenced:reload", false) if (cooldownTimer~=nil) then killTimer(cooldownTimer) cooldownTimer = nil end end addEventHandler("onClientPlayerWeaponSwitch", getRootElement(), disableCooldown) function weaponFire(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon==24) then -- silenced local mode = getElementData(localPlayer, "silencedmode") if (mode==0) then -- tazer mode enableCooldown() local px, py, pz = getElementPosition(localPlayer) local distance = getDistanceBetweenPoints3D(hitX, hitY, hitZ, px, py, pz) if (distance<35) then fxAddSparks(hitX, hitY, hitZ, 1, 1, 1, 1, 10, 0, 0, 0, true, 3, 1) end playSoundFrontEnd(38) triggerServerEvent("tazerFired", localPlayer, hitX, hitY, hitZ, hitElement) end end end addEventHandler("onClientPlayerWeaponFire", localPlayer, weaponFire) function weaponAim(target) if (target) then if (getElementType(target)=="vehicle") then if (getPedWeapon(localPlayer)==24) then local mode = getElementData(localPlayer, "silencedmode") if (mode==2) then actualspeed = exports.global:getVehicleVelocity(target) outputChatBox(getVehicleName(target) .. " clocked in at " .. actualspeed .. " km/h.", 255, 194, 14) end end end end end addEventHandler("onClientPlayerTarget", getRootElement(), weaponAim) -- code for the target/tazed person function cancelTazerDamage(attacker, weapon, bodypart, loss) if (weapon==24) then -- silenced local mode = getElementData(attacker, "silencedmode") if (mode==0 or mode==2) then -- tazer mode / radar gun mode cancelEvent() end end end addEventHandler("onClientPlayerDamage", localPlayer, cancelTazerDamage) function showTazerEffect(x, y, z) fxAddSparks(x, y, z, 1, 1, 1, 1, 100, 0, 0, 0, true, 3, 2) playSoundFrontEnd(38) end addEvent("showTazerEffect", true ) addEventHandler("showTazerEffect", getRootElement(), showTazerEffect) local underfire = false local fireelement = nil local localPlayer = getLocalPlayer() local originalRot = 0 local shotsfired = 0 function onTargetPDPed(element) if (isElement(element)) then if (getElementType(element)=="ped") and (getElementModel(element)==282 or getElementModel(element)==280 or getElementModel(element)==285) and not (underfire) and (getControlState("aim_weapon")) then underfire = true fireelement = element originalRot = getPedRotation(element) addEventHandler("onClientRender", getRootElement(), makeCopFireOnPlayer) addEventHandler("onClientPlayerWasted", getLocalPlayer(), onDeath) end end end addEventHandler("onClientPlayerTarget", getLocalPlayer(), onTargetPDPed) function makeCopFireOnPlayer() if (underfire) and (fireelement) then local rot = getPedRotation(localPlayer) local x, y, z = getPedBonePosition(localPlayer, 7) setPedRotation(fireelement, rot - 180) setPedControlState(fireelement, "aim_weapon", true) setPedAimTarget(fireelement, x, y, z) setPedControlState(fireelement, "fire", true) shotsfired = shotsfired + 1 -- if (shotsfired>40) then -- triggerServerEvent("killmebyped", getLocalPlayer(), fireelement) -- end end end function onDeath() if (fireelement) and (underfire) then setPedControlState(fireelement, "aim_weapon", false) setPedControlState(fireelement, "fire", false) setPedRotation(fireelement, originalRot) fireelement = nil underfire = false removeEventHandler("onClientRender", getRootElement(), makeCopFireOnPlayer) removeEventHandler("onClientPlayerWasted", getLocalPlayer(), onDeath) end end Server-side: local time = 10 --In seconds, time, when player is frozen function silencedmodes(localPlayer, number) local mode = tonumber(number) if mode == 0 then --tazer setElementData(localPlayer,"silencedmode", 0) elseif mode == 1 then --leathal setElementData(localPlayer,"silencedmode", 1) elseif mode ==2 then --radar setElementData(localPlayer,"silencedmode", 2) end end addEvent("silencedmode", true) addEventHandler("silencedmode", getRootElement(), silencedmodes, thePlayer, number) function tazerShot(hitX, hitY, hitZ, hitElement) setPedFrozen ( source, true ) setPedAnimation( source, "ped", "FLOOR_hit_f") setTimer(setPedFrozen, time * 1000, 1, source, false) setTimer(setPedAnimation, time * 1000, 1, source) end addEvent("tazerFired", true) addEventHandler("tazerFired", getRootElement(), tazerShot, hitX, hitY, hitZ, hitElement) function killmebyped(target) --killed by ped blahhhh end When I turn it to Tazer and shoot someone I get down tazzered not that I shooted him
-
Son,I wanna be like Tony Montana
-
A:hmm...if I have 9 billion dollars than yes Q:You wanna suck my cock?
-
ohh fuck accounts.xml is disabled go to your Console (Black Screen) and then do delaccount username
-
A:Yeah he is searching for a host now Q:Do you heard that I'm getting raped now?
-
Hey all I want some help of the Tazer for the LSPD team please help me
-
Go to accounts.xml and then delete accs P.S:Please how much questions left wtf?! you're the question god??
-
HAHAHA WHY I'M SO NOOBISH AND I'M USING CAPS LOCK
-
I'll try it and I'll edit the post with the end EDIT:Yeah Castillo it works fine thank you all
-
lol?? he is searching for a host....
-
I tryed /l and I pressed L and nothing....
-
hmm @laserlaser:It dosen't work @Castillo:huh I press 'l' and it works fine but it only write one word like that if we say like :Kill Him it writes only Kill
-
Wrong section.... go and post it at Server To Play On