Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. use : getPlayerFromName to get Players name on the server .
  2. You forgot the string here "reason" . function kickplay () if ( hasObjectPermissionTo ( source, "function.kickPlayer" ) ) then kickPlayer ( source, source, "reason" ) end end addEvent ( "kickplayer", true ) addEventHandler ( "kickplayer", root, kickplay )
  3. يابن الحلال جربة هههـ بتشتغل اول مايدخل
  4. جرب ذا : GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") ----------------------------------------- addEventHandler("onClientResourceStart", resourceRoot, function () showCursor(true) end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) triggerServerEvent("onClick1",localPlayer) end end )
  5. http://www.mediafire.com/?gvslp6kivtpnmvl ذذ النسخة انجليزية ~_~ لا تحملها ~_~ النسخة ذي حملها : http://www.mediafire.com/?bu829d695xu8q9y
  6. GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") addEventHandler("onClientPlayerJoin", resourceRoot, function () showCursor (true) end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) triggerServerEvent("onClick1",localPlayer) end end )
  7. GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/tarkep.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") ----------------------------------------- showCursor ( true ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) triggerServerEvent("onClick1",localPlayer) end end ) اطلع وادخل
  8. اطرح المود واسوية لك ذذ الكلنت اللوحة و وين الزر اللي تبية يغلق اللوحة ذذ
  9. انت لا تخفي اللوحة خلها ظاهرهـ وسوي اظهار للمؤشر وبسس ! ويوم يضغط الزر يسوي اخفاء لة اظهار كذا : showCursor (true)
  10. مشكورر اشتغل You're Welcome .
  11. Hi all, Today I finished my script (Messenger system) Authors: 1- MR.S3D 2- Mr.Pres[T]ege Script | Features / - You can create your own account - You can add a contact - You can delete a contact - You can send icons in Conversation - And much much more - You can download the script and see the script better Script | Defects / - You can not communicate, but who are in the same server Some images / Download / https://community.multitheftauto.com/index.php?p=resources&s=details&id=6525 ------------------------------ If you want to add anything in the script, you can modify it and please do not remove the rights and script unencrypted Have Fun Mr.Pres[T]ege and MR.S3D
  12. addEventHandler( "onPlayerWasted", root, function() local accName = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) end end )
  13. منورين .. وبالتوفيق سعد
  14. I forgot this Sorry I've modified it now.
  15. addEventHandler("onPlayerChat",root, function (msg,ped) if ( msg == "anim" ) then setPedAnimation(ped,nil,nil,nil) end end )
  16. -- Server Side checkModels = { "rifle.ifp", "hmybe.dff", "hmybe.txd", "bmybe.dff", "bmybe.txd", "proc_int.col", "fight_e.ifp", "a51.txd", "a51_ext.txd", "a51_labs.txd", "carimpound_sfe.txd", "ce_farmxref.txd", "copshop_sfe.txd", "crack_intkb.txd", "crackfact_sfse.txd", "crackfactdem_sfs.txd", "freight_sfe.txd", "frieghter2sfe.txd", "lanpolicecp.txd", "lanriver.txd", "vgndwntwn1.txd", "bakery_sfse.txd", "bakerybit_sfse.txd", "bigshed_sfse.txd", "factory_sfse.txd", "factorynewsfse.txd", "genwhse_sfse.txd", "vgsswarehse01.txd", "vgsswarehse02b.txd", "vgsswrehse03.txd", } function handleOnPlayerModInfo( filename, modList ) for _, mod in ipairs( modList ) do for _, checkName in ipairs( checkModels ) do if mod.name == checkName then kickPlayer( source ) end end end end addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo )
×
×
  • Create New...