Jump to content

SkiZo

Members
  • Posts

    114
  • Joined

  • Last visited

Everything posted by SkiZo

  1. Hey ! I need Your Help Brother ! 
    Please help me ! 

    1. SkiZo

      SkiZo

      you will find every thing in PM

      Thanks :$ 

  2. Yeah Was Named Only 'zone' but i change it to 'zone1' and every thing is good thanks again !! if i wonna to add other gun like Sniper i use aMyWeapon == 38 or aMyWeapon ==34 then ??? And If I Wonna to add That output chat and be visible to that player who use MiniGun shoold i add outputChatBox ( "You Can not use This Weapon in this Event", source, 255, 100, 0,true ) or outputChatBox ( "You Can not use This Weapon in this Event", hitPlayer, 255, 100, 0,true ) ???? @iPrestege
  3. [2017-01-04 19:41:48] WARNING: ChallengeArea\safetyzone.lua:39: Bad argument @ 'isElementWithinColShape' [Expected colshape at argument 2, got nil] [DUP x4] Thank You Very Much It's Work Thank You Thank you !! @iPrestege
  4. SkiZo

    Weapon Ammo

    @iPrestege Please check The Chat :\
  5. Hello , I Created A script ! it's work but the problem that ! the minigun not allowed in all the server how can i make it not allowed only in "Challenges area" Challenges area ! Deathmatch Make you make event vs other player ! Use any gun but not minigun !! this is the script --- --- function antiminigun ( previousWeaponID, currentWeaponID ) --when a player switches his weapon if currentWeaponID == 38 then local name = getClientName ( source ) local weapon = getWeaponNameFromID ( currentWeaponID ) outputChatBox ( "You Can not use This Weapon in this Area", source, 255, 100, 0,true ) PN = getPlayerFromNick (name) toggleControl (source, "fire", false) else toggleControl (source, "fire", true) end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), antiminigun ) -- -- this is the area local skintable = { [10] = true, [11] = true, [12] = true, [13] = true, [14] = true, [15] = true, [17] = true, [16] = true, [18] = true, [19] = true, [20] = true, [21] = true, [22] = true, [24] = true} --Zombie Skinszone1 = createColCuboid ( 112.9927444458, 1337.1772460938, 10, 170, 150, 255 ) safeZoneRadar = createRadarArea ( 112.9927444458, 1337.1772460938, 170, 150, 0, 0, 0, 0 ) setElementData (safeZoneRadar, "zombieProof", true) function outZone(hitPlayer,thePlayer) function inZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if not skintable[getElementModel(hitPlayer)] then --if not zombie toggleControl (hitPlayer, "fire", true) toggleControl (hitPlayer, "next_weapon", true) toggleControl (hitPlayer, "previous_weapon", true) toggleControl (hitPlayer, "prelaus_weapon", true) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", false) else --if zombie killPed (hitPlayer) --kill zombie end end addEventHandler( "onColShapeHit", zone1, inZone ) local skin = getElementModel (hitPlayer) toggleControl (hitPlayer, "fire", true) toggleControl (hitPlayer, "next_weapon", true) toggleControl (hitPlayer, "previous_weapon", true) toggleControl (hitPlayer, "prelaus_weapon", true) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) if skintable[getElementModel(hitPlayer)] then killPed (hitPlayer) --kill zombie end end addEventHandler( "onColShapeLeave", zone1, outZone )
  6. i Was Asking if there is Solution !! When Player In "Zone" He Can not Use Minigun(38) I Tried Something It's Work but the problem that !! forbid MINIGUN from Server !! !! How Can I Forbid A Weapon from A Selected Zone ??? Sorry for my bad english ~>Legend
  7. SkiZo

    Private Car

    Hello EveryOne , I Need Some Help , I Have This Script For Private Car .. Every thing is good but i winna to add aBlip Attached to the Car And Only That Two Players Can See It !! --------------------------------------------------------------------------------------------------------------------------------------- vehicle = createVehicle( 503, 2279.1000976563, -1671.1999511719, 15.10000038147, 0, 0, 272 ) setVehicleColor( vehicle, 46, 254, 154 ) function lockPrivate( theplayer, seat, jacked ) if ( source == vehicle ) then local account = getPlayerAccount( theplayer ) local accountName = ( account and getAccountName ( account ) or "" ) if not( accountName == "Player1" or accountName == "Player2" ) then cancelEvent() outputChatBox("#9E0000This vehicle is locked for following users:#0D9905Player1 #9E0000Shared With #0D9905Player2 ", theplayer, 255, 255, 255, true) else outputChatBox("#0D9905Welcome to your vehicle, Sir!", theplayer, 255, 255, 255, true) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockPrivate ) setVehicleDamageProof(vehicle, true) -----------------------------------------------------------------------------------------------------------------------------------
  8. SkiZo

    Spawn Vehicle

    Take An Exemple ! I Hit The Marker I Get A Car ! I Hit It Again And I Get Car But The Last Car That I take Still there :\
  9. SkiZo

    Spawn Vehicle

    Hello , I Need Some Help Please There Is Cylinder In CLAN And I Wonna If Some One Hit It It In ACL Clan1 Get A Car BUT Here The Problem !! I Can't Make The Last Car Destroy When He Hit The Marker Again :\ ~> Script local Marker1 = createMarker (-1529.0632324219, 455.220062255886, 6, "cylinder", 3, 0, 0, 255, 100) function Vehicle1 ( hitPlayer, getPlayerVehicle ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hitPlayer)), aclGetGroup("Clan1")) then local Veh1 = createVehicle(541, -1529.0632324219, 455.220062255886, 7.2) warpPedIntoVehicle ( hitPlayer, Veh1 ) else outputChatBox ("Clan1: Access denied", hitPlayer, 100, 0, 0) end end addEventHandler( "onMarkerHit", Marker1, Vehicle1)
×
×
  • Create New...