Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. I'm with you in this suggestion!
  2. You can download any program best for you!
  3. New Problem Now! when player wasted it will be in the same team but the player will go to other teams pos?why? Client Side: addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == Drift ) then triggerServerEvent("Drift",getLocalPlayer()) end end) Server: Drift = createTeam( "Players Drift",255,255,0) addEvent("Drift",true) addEventHandler("Drift",root, function ( ) spawnPlayer ( source, -1819.62439, -3737.35132, -3003.31567,32.63086, 46, 0, 0, getTeamFromName ( "Players Drift" ) ) setPlayerTeam ( source, Drift ) setElementData ( source, "team", getTeamName ( Drift ) ) end ) function spawn(player) local x = getElementData(player,"x") local y = getElementData(player,"y") local z = getElementData(player,"z") local team = getTeamFromName(getElementData(player,"team")) local skin = getElementData(player,"skin") spawnPlayer(player,x,y,z,0,skin,0,0,team) r, g, b = getTeamColor ( getPlayerTeam ( player ) ) setPlayerNametagColor ( player, r, g, b ) giveWeapon ( player , 16, 1 ) giveWeapon ( player , 31, 100 ) giveWeapon ( player , 24, 100 ) fadeCamera(player,true) setCameraTarget(player,player) end addEvent("spawnPlayer",true) addEventHandler("spawnPlayer",root, function () spawn(source) end ) addEventHandler("onPlayerWasted",root, function () setTimer(spawn,3000,1,source) end ) addEventHandler("onPlayerWasted",root, function (_,killer) if ( killer and killer ~= source ) then givePlayerMoney(killer,math.random(5000)) end end ) addEvent ( "takeWeapons", true ) addEventHandler( "takeWeapons", root, function ( ) takeAllWeapons ( source ) setPlayerTeam ( source, nil ) end ) local g_szTeam = "Players Drift"; local g_pPosition = { -3737.35132, -3003.31567,32.63086 }; addEventHandler( "onPlayerWasted", root, function( ) local pTeam = getPlayerTeam( source ); if ( pTeam and getTeamName( pTeam ) == g_szTeam ) then spawnPlayer( source, unpack( g_pPosition ) ); takeAllWeapons ( source ) setPedSkin ( source, 46 ) takeAllWeapons ( source ) end end )
  4. yes you need Cancle event onPlayerChat Like That? local root = getRootElement() function chatbox(text, type) cancelEvent() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then cancelEvent() elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("msol-admin")) then cancelEvent() end end addEventHandler("onPlayerChat", root, chatbox) Also i want to hide the chat : function Hide() showChat (false) end addEventHandler ( "onResourceStart", getRootElement(), Hide ) i want to cancel the chat for ever =D
  5. Can I cancel the chat on my server?
  6. I know height and width! But how do I calculate it?but thanks .
  7. So where is the fixVehicle in this? setTimer ( fixVehicle, 2000, 1, hitElement )
  8. Thank you ,you did not understand what I mean!
  9. I do not understand that I wanted to do Can you put an example?
  10. width, height = ( x2 - x1 ), ( y2 - y1 ) ColShape = createColRectangle (-1947.08, -1796.138, width, height ) addEventHandler( "onClientColShapeHit", ColShape, function ( thePlayer ) if ( thePlayer == localPlayer ) then bindKey ( "F1", "down", open ) end end ) addEventHandler( "onClientColShapeLeave", ColShape, function ( thePlayer ) if ( thePlayer == localPlayer ) then unbindKey ( "F1", "down", open ) end end )
  11. What does this mean?Can you explain more? I did not understand what you mean?
  12. Hello, how can I calculate the area's Height and width?
  13. سو الغاء لـ تشغيل الفري روم مع بداية تشغيل الروم..
  14. المشكلة عندك أن لوحة الأدمنية مو شغالة لان التسجيل موجود في لوحة الأدمنية عشان تشتغل مع بداية تشغيل السيرفر mtaserver.conf لازم تضيفها في ملف من بداية سطر 200 -- Specifies resources that are loaded when the server starts and/or which are protected from being stopped. To specify several resources, add more parameter(s). --> "admin" startup="1" protected="0" /> "defaultstats" startup="1" protected="0" /> "helpmanager" startup="1" protected="0" /> "RRr" startup="1" protected="0" /> "mapcycler" startup="1" protected="0" /> "mapmanager" startup="1" protected="0" /> "parachute" startup="1" protected="0" /> "resourcebrowser" startup="1" protected="1" default="true" /> "resourcemanager" startup="1" protected="1" /> "scoreboard" startup="1" protected="0" /> "spawnmanager" startup="1" protected="0" /> "voice" startup="1" protected="0" /> "votemanager" startup="1" protected="0" /> -- play is the default freeroam gamemode. Remove the following line to prevent it from starting. --> "play" startup="1" protected="0" /> تابل يقصد ضيف هذا الكود : "admin" startup="1" protected="0" /> عند : -- Specifies resources that are loaded when the server starts and/or which are protected from being stopped. To specify several resources, add more parameter(s). --> وريستارت للروم / =
  15. وش استضافتك؟ ججربت تسسوي فورمآت ؟ غريبة الاستضافة كويسة ..
×
×
  • Create New...