Jump to content

Monty

Members
  • Content Count

    167
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Monty

  • Rank
    Busta

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Monty

    bind key remove

    all the resource is client side... how do i trigger to server?
  2. Monty

    bind key remove

    that's what i want to do but how? how i say wasted in the helicopter?
  3. how do i remove the key bind when i die inside the helicopter??? addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 487 then local x, y, z = getElementPosition ( theVehicle ) local rx, ry, rz = getElementRotation ( theVehicle ) minigunOne = createWeapon ( "minigun", x, y, z ) minigunTwo = createWeapon ("minigun", x, y, z ) minigunOneF = createWeapon ( "minigun", x, y, z ) minigu
  4. Monty

    grenade laucher

    still not working function onClientPlayerWeaponFireFunc(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) if weapon == 31 then -- if source is a local player and he uses minigun... x,y,z = getElementPosition(getLocalPlayer()) if not createProjectile(getLocalPlayer(),16,x,y,z,200) then -- then we either create a projectile... outputChatBox ( "Rocket minigun overheated! Give it a rest pal!", source ) -- or if projectile limit is reached we output player a chat message end end end -- Don't forget to add the onClientPlayerWeaponFire
  5. what's wrong? why doesnt shoot? -- This function gets triggered everytime player shoots. function onClientPlayerWeaponFireFunc(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) if weapon == 31 then -- if source is a local player and he uses minigun... x,y,z = getElementPosition(getLocalPlayer()) if not createProjectile(getLocalPlayer(),16,x,y,z,200) then -- then we either create a projectile... outputChatBox ( "Rocket minigun overheated! Give it a rest pal!", source ) -- or if projectile limit is reached we output player a chat message en
  6. function joinSAPD() setPlayerTeam(source,SAPDteam) setElementModel(source, 280) giveWeapon ( source, 3 ) setElementData( source, "Occupation", "Copteam", true ) outputChatBox("You are now SAPD agent.",source,0,255,0) end addEvent("setSAPD", true) addEventHandler("setSAPD",root,joinSAPD) function policeJob ( attacker, attackerweapon, bodypart, loss ) if attacker and getElementType(attacker) == "player" then theTeam = getPlayerTeam ( attacker ) theWL = getPlayerwantedLevel( source ) attackerweapon = getPedWeapon(attacker) if (attackerw
  7. 1) lo script è 90% mio 2) il dubug da bad agrument line 96
  8. hei raga.... ma cos'è che ho ciccato in sto codice??? server createBlip ( 1552.4996337891, -1677.3264160156, 15.1953125, 30 ) local jailBlip = createBlip ( 1799.9298095703, -1584.1966552734, 13.488187789917, 20 ) local jailMark = createMarker( 1799.9298095703, -1584.1966552734, 13.488187789917, "Cylinder" , 1.5, 0, 0, 255, 150) function createSAPDTeam () SAPDteam = createTeam ("police", 100, 149, 237) end addEventHandler ("onResourceStart", resourceRoot, createSAPDTeam) function joinSAPD() setPlayerTeam(source,SAPDteam) setElementModel(source, 280) giveWe
  9. i fixed but the console now repots "expected an element at argument 2"
  10. the console reports "bad arguments line 96 addEventHandler" createBlip ( 1552.4996337891, -1677.3264160156, 15.1953125, 30 ) local jailBlip = createBlip ( 1799.9298095703, -1584.1966552734, 13.488187789917, 20 ) local jailMark = createMarker( 1799.9298095703, -1584.1966552734, 13.488187789917, "Cylinder" , 1.5, 0, 0, 255, 150) function createSAPDTeam () SAPDteam = createTeam ("police", 100, 149, 237) end addEventHandler ("onResourceStart", resourceRoot, createSAPDTeam) function joinSAPD() setPlayerTeam(source,SAPDteam) setElementModel(source, 280) giveWeap
  11. it report an error on the condition of the team name line 11
  12. any help? server markerp = createMarker( 1556.9852294922, -1608.1356201172, 12.3828125, "cylinder", 2, 0, 0, 255, 255 ) marker2p = createMarker( 1570.1909179688, -1610.1462402344, 12.3828125, "cylinder", 2, 0, 0, 255, 255 ) marker3p = createMarker( 1584.61328125, -1608.2557373047, 12.3828125, "cylinder", 2, 0, 0, 255, 255 ) marker4p = createMarker( 1595.1407470703, -1607.5220947266, 12.3828125, "cylinder", 2, 0, 0, 255, 255 ) local vehicles = {} function spawnVehP(id, source) theTeam = getPlayerTeam( source ) theTeamName = getTeamName( theTe
×
×
  • Create New...