Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. Server Side ! Team = createTeam ("Team Name",255,0,0) addEvent("spawn",true) addEventHandler("spawn",root, function () setPlayerTeam(source,Team) spawnPlayer ( thePlayer, x, y, z, skinID ) giveWeapon ( source, ID, AMMO ) setElementModel ( Team, spawnPlayer ) end) الاستبدال x y z الاحداثيات سطر11 skinID رقم الشخصية سطر 13 AMMO الدخيرة جم تبيها ID السلاح الايد ماله Client Side ! triggerServerEvent ( "spawn", localPlayer ) Team = createTeam ("Team Name",255,0,0) addEvent("spawn",true) addEventHandler("spawn",root, function () setPlayerTeam(source,Team) spawnPlayer ( source, x, y, z, skinID ) giveWeapon ( source, ID, AMMO,true ) end ) Client : addEventHandler("onClientGUIClick",Button, function () triggerServerEvent("spawn",localPlayer) end,false)
  2. -- client triggerServerEvent("onCallServer",localPlayer) -- server addEvent("onCallServer",true) addEventHandler("onCallServer",root, function () --- end)
  3. onClientGUIClick triggerServerEvent addEvent addEventHandler createTeam setPlayerTeam spawnPlayer giveWeapon setElementModel
  4. كلها تشتغل ذذ #,
  5. marker = createMarker ( 1538.8000488281, -1627.8000488281, 13.39999961853 , "cylinder", 4, 255, 0, 0, 170 ) door = createObject(2990, 1540.5, -1627.6999511719, 16.299999237061,0,0,272) GUIEditor_Button = {} GUIEditor_Label = {} wido = guiCreateWindow(267,343,319,121,"By yazan",false) guiSetVisible(wido,false) GUIEditor_Button[1] = guiCreateButton(24,63,137,49,"open",false,wido) GUIEditor_Button[2] = guiCreateButton(164,64,132,48,"clos",false,wido) GUIEditor_Label[1] = guiCreateLabel(106,30,97,23,"لفتح او اغلق الباب",false,wido) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then guiSetVisible(wido,true) showCursor(true) end end ) addEventHandler ( "onClientMarkerLeave", marker, function ( leftElement ) if ( guiGetVisible ( wido ) == true and getElementType ( leftElement ) == "player" and ( leftElement) == localPlayer) then guiSetVisible (wido, false ) showCursor ( false ) end end ) addEventHandler( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then moveObject(door, 5000, -2646.6999511719, 1359.3000488281, 7.8000001907349) guiSetVisible(wido,false) outputChatBox('#FFFF00 تم فتح الباب',255, 255, 0, true ) elseif ( source == GUIEditor_Button[2] ) then moveObject(door, 5000, 1540.5, -1627.6999511719, 16.299999237061) guiSetVisible(wido,false) outputChatBox('#FFFF00 تم غلق الباب',255, 255, 0, true ) end end )
  6. Yes You Can Like This : "test" color="[ [ 255, 0, 0 ] ]" /> https://community.multitheftauto.com/index.php?p=resources&s=details&id=6400 (((=
  7. onResourceStart createTeam
  8. How you create the team?
  9. وين هـ اللي سويتة #, showCursor(false,false)
  10. من البداية والاكواد شغاله # بس مدري وش مشكلتك # أطرح الميتأ #,
  11. if use source it won't work try this : function givekit2( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then if not tempokit2 then giveWeapon ( player, 31, 300 ) --Give M4 giveWeapon ( player, 34, 80 ) -- Give Sniper Rifle tempokit2 = true setTimer(set1hora,3600000,1,player) end end end addCommandHandler("kitvippremiun",givekit2) function set1hora() tempokit2 = false end function givekit1( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then if not tempokit1 then giveWeapon ( player, 29, 300 ) --Give MP5 giveWeapon ( player, 34, 10 ) -- Give Sniper Rifle tempokit1 = true setTimer(set30mim,1800000,1,player) end end end addCommandHandler("kitvip",givekit1) function set30mim() tempokit1 = false end function givebike( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then local x,y,z= getElementPosition(player) veh = createVehicle(509, x+1, y, z) warpPedIntoVehicle(player, veh) end end addCommandHandler("bikevip",givebike) ((=
  12. http://store2.up-00.com/Nov12/zwt23341.png
  13. شغال معي # ورني وش اللي سويتة #
  14. - Client - GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(32,125,721,362,"By yaZan",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Edit[1] = guiCreateEdit(9,65,694,96,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(233,34,239,19,"اكتب رساله و اضغط ارسل للشرطة للمساعدتك",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(86,164,516,55,"ارسل للشرطة",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(12,249,700,101,"تحديد مكاني",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(264,223,395,21,"اضغط تحديد مكاني لتحديد مكانك",false,GUIEditor_Window[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F7","down",open) addEventHandler( "onClientGUIClick", root, function () local Data = guiGetText(GUIEditor_Edit[1]) local x,y,z = getElementPosition (localPlayer) if ( source == GUIEditor_Button[1] ) then triggerServerEvent("onSendDataToPolice",localPlayer,Data) elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent("onSendDataToCreateTheBlip",localPlayer) end end ) - Server - addEvent ( "onSendDataToPolice", true ) addEventHandler ( "onSendDataToPolice", root, function ( Data ) if tostring ( Data ) then for _, v in ipairs ( getElementsByType ( "player" ) ) do local team = getPlayerTeam ( v ) if ( team and getTeamName (team) == ("التيم#")) then outputChatBox ( "a communication has been received from ["..getPlayerName(source).."] : "..Data, v, 225, 0, 0, true ) end end end end ) addEvent ( "onSendDataToCreateTheBlip", true ) addEventHandler ( "onSendDataToCreateTheBlip", root, function() createBlipAttachedTo (source,id) end)
  15. وش هو اللي تبي تسوية بـ التمآم #,
  16. No that's not right. Server - Syntax 1 bindKey ( player thePlayer, string key, string keyState, function handlerFunction, [ var arguments, ... ] ) Required Arguments thePlayer: The player you wish to bind the key of. key: The key or control you wish to bind to the command. See key names for a list of possible keys and control names for a list of possible controls. keyState: A string that has one of the following values:
  17. The alpha value to set. Value can be 0-255, where 255 is fully opaque and 0 is fully transparent.
×
×
  • Create New...