Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. In your code, when the player join the stat will be set to 500, and when he kills a zombie, If you but "current + 999" then it will be 500 + 900 = 1400, which is not allowed ! So if you want to set it to 1000, just but 1000 in it ( i told that in my replay ! ) .
  2. copy my code, I don't have getPedStat in mine !
  3. function equi ( ) setPedStat( source, 75, 500 ) end addEventHandler( "onPlayerJoin", root, equi ) addEvent( "onZombieWasted",true ) addEventHandler( "onZombieWasted", root, function( killer ) if isElement( killer ) and getElementType( killer ) == "player" then setPedStat ( killer, 75, 999 ) end end ) And if it didn't work replace "999" with "1000" .
  4. local x, y, z = getElementPosition( getLocalPlayer( ) ) createExplosion( x, y, z - 2, ... )
  5. Do it client side and it will be visible for you only .
  6. شرحك رآئع وجميل ومفهوم لآهنت عالموضوع يا بطل
  7. و الله ما وصل كذا الا وهو يساعد يمين ويسار الله يعطيه العافية
  8. الله يعافيك ,,
  9. Try it with the event onPlayerWasted, Kill your self and see if it works .
  10. عادي سوي اي فنكشن على حسب مودك ذذ function output( msg ) outputChatBox( msg ) outputServerLog( msg ) outputDebugString( msg ) outputConsole( msg ) return true end
  11. تضيف في الميتا حق المود إللي تبغى تستخرج منه الوظيفة : function="functionName" type="server" /> وبعدين في المود إللي تبغى تستخدمها فيه تسوي كذا : exports.resourceName:functionName( ... ) -- or exports[ "resourceName" ]:functionName( ... ) -- or call( getResourceFromName( "resourceName" ), "functionName", ... )
  12. Using variables on server side in the way you want is not efficient, You should use tables or element data as MIKI785 said . And if you're using tables / element data and still the same proplem, Post the script .
  13. ما يوقف علطول يمشي شوي ويوقف stopObject ولمن يوقفه بالفنكشن moveObject هو محرك الأوبجكت بالفنكشن @ 3ssol : عشان تسوي للأوبجكت فريز ويوقف setElementFrozen إستخدم
  14. I don't think that the script makes much sens, The stat of the player will allways be 0 on join !!
  15. Use getPedStat - setPedStat .
  16. PaiN^

    Functions!

    He means that spawnPlayer have an dimension and imterior arguments, So you can use it ( one function ) instead of using 3 functions .
  17. PaiN^

    question

    Oh, Will You can make a function to get the players in the team, and then make the marker visible only for them . local myTeam = createTeam( ... ) function getTeamRootElement( team ) if team and isElement( team ) and getElementType( team ) == "team" then for k,v in ipairs( getPlayersInTeam( team ) ) do return v end end return false end local marker = createMarker( x, y, z, "cylinder", 1, 255, 0, 0, 255, getTeamRootElement( myTeam ) )
  18. PaiN^

    question

    addEventHandler( "onClientMarkerHit", marker, function( player ) if player == localPlayer then local playerTeam = getPlayerTeam( player ) if playerTeam and playerTeam == getTeamFromName( "Team Name" ) then -- do what you want end end end ) You mean like this ??
  19. ؟ getElementType - addCommandHandler ليش
  20. يمكن يكون في على حسب كودك و وش وظيفته ما راح نقدر نساعدك اكثر بدون الكود
  21. Rmove "background" from the "guiCreateLabel" function .
×
×
  • Create New...