Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. iPrestege

    need help

    Hi ! You can't use give - take weapon client side it's server side only.
  2. لا تسوي تايمر اصلاَ ماتقدر تضغط الا يوم تظهر النافذه والتايمر ينتهي يعني وش تقتل بس افهم انا
  3. isElement ( timer ) What is this shit man.. isTimer local marker = createMarker ( x,y,z, 'cylinder', 1.5, 255, 255, 0, 170 ) addEventHandler('onClientMarkerHit',marker, function ( hitElement ) if ( hitElement and hitElement == localPlayer ) then if not isTimer ( VisibleTime ) then VisibleTime = setTimer ( function ( ) if ( isElementWithinMarker ( hitElement,marker ) ) then guiSetVisible ( element,true ) end end,60000,1 ) end end end )
  4. No it's not just change localPlayer > root as Sasuke* did .
  5. يقتل التايمر يلغية تقريبا
  6. onClientPlayerDamage Event ^ + : getPlayerTeam getTeamFromName cancelEvent
  7. Sorry we don't accept request here 'Scripting Section' .
  8. That's because there'a an extra end remove one .
  9. You can make your own staff script using : onPlayerLogin Event. isObjectInACLGroup -- Admin setElementModel getAccountName setPlayerNametagColor
  10. https://wiki.multitheftauto.com/wiki/Main_Page https://wiki.multitheftauto.com/wiki/Scripting_Introduction
  11. policeVehicles = { [598]=true,[596]=true,[597]=true,[599]=true }; addEventHandler ( 'onVehicleStartEnter', root, function( player ) if policeVehicles[ getElementModel( source ) ] and not getTeamName( getPlayerTeam ( player ) ) == 'Police' then cancelEvent() end end ) just a comma .
  12. policeVehicles = { [598]=true,[596]=true,[597]=true,[599]=true }; addEventHandler ( 'onVehicleStartEnter', root ) function( player ) if policeVehicles[ getElementModel( source ) ] and not getTeamName( getPlayerTeam ( player ) ) == 'POLICE' then cancelEvent() end end end ) forgot to close addEventHandler but now it says "" expected near "(" and script failed to start No he just forget comma .
  13. onVehicleStartEnter Read the wiki and the example .
  14. addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(166, 96, 545, 402, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(16, 31, 152, 127, ":images/banshee.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(13, 218, 155, 143, ":images/infernus.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(206, 33, 151, 125, ":images/monster.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(207, 222, 150, 139, ":images/cheetah.png", false, GUIEditor.window[1]) GUIEditor.staticimage[5] = guiCreateStaticImage(396, 34, 130, 124, ":images/bullet.png", false, GUIEditor.window[1]) GUIEditor.staticimage[6] = guiCreateStaticImage(395, 219, 131, 142, ":images/supergt.png", false, GUIEditor.window[1]) end ) bindKey('F3','down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) Next time use Lua/Lua before post the code here . https://forum.multitheftauto.com/viewtopic.php?f=91&t=47897
  15. bindKey guiSetVisible showCursor guiGetVisible
  16. addCommandHandler('hi', function ( player ) if player and not isGuestAccount ( getPlayerAccount ( player ) ) then setAccountData ( getPlayerAccount ( player ),'aChatHi','Hi @ '..getPlayerName ( player )..'' ) end end ) addCommandHandler('results', function ( player ) if player and not isGuestAccount ( getPlayerAccount ( player ) ) then outputChatBox ( getAccountData ( getPlayerAccount ( player ),'aChatHi' ) ) end end )
  17. Your code is wrong .. try this : -- # Server Side ... local myMarker = createMarker( 2488.1000976563, -1667.5, 13.300000190735, 'cylinder', 2.0, 255, 0, 0, 150) local aTimerFlood = { } function MarkerHit( hitElement, matchingDimension ) if getElementType ( hitElement ) == "player" then if isTimer ( aTimerFlood [ hitElement ] ) then return outputChatBox ("Please Wait a Minute!!!",hitElement,255,0,0) end givePlayerMoney ( hitElement,1000 ) aTimerFlood [ hitElement ] = setTimer ( function ( ) if isTimer ( aTimerFlood [ hitElement ] ) then killTimer ( aTimerFlood [ hitElement ] ) aTimerFlood [ hitElement ] = nil end end ,300000 , 1 ) end end addEventHandler( "onMarkerHit", myMarker, MarkerHit,false )
  18. https://forum.multitheftauto.com/viewtopic.php?f=165&t=60719 Vortex Servers ! CahU - Paypal .
  19. ماعندي اي فكرهـ .. و لية تشفر اصلآَ
  20. اظن مافية حل غير تبرمج سكربت يشفر خاص منك
×
×
  • Create New...