Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. bool setPlayerTeam ( player thePlayer, team theTeam ) كيف يجي ارقومنت ثالث ذذ ؟ انتظر ردهـ ..
  2. جرب غير ذي : setPlayerTeam ( v, nil ) To : setPlayerTeam ( v, nil,nil )
  3. You're spawned? For example you have 'play' Gamemode? And zombie script named as 'zombies' ?
  4. function removes ( v ) if getElementType ( v ) == 'player' then local theTeam = getPlayerTeam ( v ) if theTeam then setPlayerTeam ( v, nil ) end end end addEventHandler ( "onMarkerHit",Door, removes,false )
  5. function removes ( v ) if getElementType ( v ) == 'player' then local theTeam = getPlayerTeam ( v ) if theTeam then setPlayerTeam ( v, nil ) end end end addEventHandler ( "onMarkerHit", getRootElement(), removes ) تبية لكل الماركرات؟ مسوية روت آنت ^^
  6. Wiki : This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did. :#
  7. onMarkerHit event getElementType setPlayerTeam nil
  8. iPrestege

    Gates

    debugscript 3?
  9. iPrestege

    Gates

    local a51gate1 = createObject ( 980, 1940.04175 ,2215.40015 ,10.7225, 0, 0, 0 ) local a51col = createColCircle ( 1940.04175 ,2215.40015 ,10.7225 ) function opena51gates(thePlayer) if string.find ( getPlayerName ( thePlayer ),'CZ' ) then moveObject (a51gate1, 5000, 1940.04175 ,2215.40015 ,10.7225 ) end end addCommandHandler( "open", opena51gates) function closea51gates(thePlayer) if string.find ( getPlayerName ( thePlayer ),'CZ' ) then moveObject (a51gate1, 5000, 1930.04175 ,2215.40015 ,10.7225 ) end end addCommandHandler( "close", closea51gates) open - close
  10. Learn : https://forum.multitheftauto.com/viewtopic.php?f=148&t=40809
  11. iPrestege

    Gates

    local a51gate1 = createObject ( 980, 1940.04175 2215.40015 10.7225, 0, 0, 0 ) local a51col = createColCircle ( 1940.04175 2215.40015 10.7225, 7 ) function opena51gates(thePlayer) if string.find ( getPlayerName ( thePlayer ),'CZ' ) then if getElementModel( thePlayer ) == 287 then moveObject (a51gate1, 5000, 1940.04175 2215.40015 10.7225 ) end end end addCommandHandler( "open", opena51gates) function closea51gates(thePlayer) if string.find ( getPlayerName ( thePlayer ),'CZ' ) then if getElementModel( thePlayer ) == 287 then moveObject (a51gate1, 5000, 1930.04175 2215.40015 10.7225 ) end end end addCommandHandler( "close", closea51gates) Commands : - open - close Server Side!
  12. You can edit the freeroam using data : setElementData getElementData
  13. iPrestege

    Gates

    if string.find ( getPlayerName ( thePlayer ),'CZ' ) then
  14. iPrestege

    Gates

    as far as i know he mean if maybe before the player name is [CZ]-->iMr.Pres[T]ege then he is allow to moveObject OK Don't double posts -_-" : string.find getPlayerName
  15. Let's say this is really an good job! Keep it up!
  16. iPrestege

    Gates

    What is the 'CZ' ?
  17. FUCK Sorry i forget something try : local theMarker = createMarker ( -2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit',theMarker, function ( hit ) if hit == localPlayer then if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then setElementPosition( hit , 2287.78320,607.99255,10.82031 ) outputChatBox ( 'SET POS DONE!' ) end end end end,false )
  18. Try my one and tell me it's client if doesn't work post meta file?
  19. local theMarker = createMarker ( -2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit',theMarker, function ( hit ) if hit = localPlayer then if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then setElementPosition( hit , 2287.78320,607.99255,10.82031 ) outputChatBox ( 'SET POS DONE!' ) end end end end,false ) Please make sure you're in team called 'Team1' Please! IT'S CLIENT SIDE.
  20. No more post about this fuck problem again .
  21. جرب كودي يوم يصير لة سباون يظهره ذذ
  22. يجيب من بداية 0 يعني الراكب 0 ذذ الى اخر شيء الماكس الفل يعني $
  23. شرآيك تجرب كذا اذا صار لة سباون يظهرهـ ذذ .. -- Server Side addEventHandler('onPlayerSpawn',root, function ( ) setPlayerNametagShowing ( source,true ) end )
×
×
  • Create New...