Jump to content

Vanlot

Members
  • Posts

    168
  • Joined

  • Last visited

Everything posted by Vanlot

  1. You need to export that event from the Level system you got.
  2. dxDrawText playSound
  3. Darkwarrior Diesel , Slothbot is just a resource which allow you to do anything with peds and you gonna script that, not the resource. for more informations read this : https://community.multitheftauto.com/index.php?p=resources&s=details&id=672 @Anubhav setPedOnFire this function will burn the player,it will not let him attack other peds
  4. "onElementColShapeHit" "addCommandHandler" setBotFollow setBotHunt spawnBot You need to have Slothbot resource to use the functions above
  5. I think that you have to increase the values a bit.
  6. function MarkerHit( hitElement, matchingDimension ) myMarker = createMarker(x,y,z, 'cylinder', size, r, g, b, alpha) if getElementType(hitElement) == 'Vehicle' then thePlayer = getVehicleController (hitElement) givePlayerMoney(thePlayer,amount) end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) addEventHandler( "onMarkerLeave", myMarker, function () destroyElement(myMarker ) end ) setTimer(MarkerHit,600000,0)
  7. التيبل تبع الستاف
  8. المفروض انو كل ستاف يشوف الميساج لكن كل الاشخاص تشوفو function getOnlineStaff(removeHEX) local players = { }; for i, v in pairs(getElementsByType'player') do if hasObjectPermissionTo(v, 'function.setPlayerMuted',true) then table.insert ( players, v); end end return players; end addEvent("onAdminCall",true) addEventHandler("onAdminCall",root, function (newname) local staff = {} for i, v in pairs(getOnlineStaff()) do outputChatBox( newname.." need help.Please contact the player", v, 255, 255, 0, true) end end )
  9. Vanlot

    database

    شكرا على التصحيح
  10. Vanlot

    database

    والله مشكور
  11. Vanlot

    database

    .هل من الممكن أن تشرح لي الوظائف التالية مع إعطاء أمثلة بسيطة لا توجد في الويكي.وسوف أكون شاكرا إذا بينت لي كيفية التعامل مع قاعدة بيانات dbConnect dbExec dbQuery dbPoll dbFree
  12. You gonna the following functions: guiCreateWindow guiCreateButton guiCreateMemo or guiCreateLabel "onClientGUIClick" createMarker createBlipAttachedTo setElementVisibleTo givePlayerMoney destroyElement "onMarkerHit" "onMarkerLeave"
  13. You can post your script and we will try to help you, or you can download a script from MTA Community https://community.multitheftauto.com/in ... =resources
  14. police = getPlayerTeam (localPlayer) if getTeamName(police) == "Police" then
  15. Vanlot

    Button.

    use the following functions : guiCreateButton triggerServerEvent the first one in order to create the gui button and the second to trigger the event from client to server side
  16. Change line 63 with this local playerTeam = getTeamName(getPlayerTeam ( getLocalPlayer ( ) ))
  17. Keep in your mind that you server needs to be unique, because most of mta roleplay servers are copies from vG (exceptions). You need to start working on the gamemode which the basic of your server.Try to have a quick look on some rp servers that may help you aswell.
  18. Thanks for the note . it's fixed
  19. I was trying to make a script for a spawner with gui.I should write the name of the wanted vehicle in the blank, then press a button, this will result in a marker creation,if the player hit that marker, he will get that vehicle. Everything working fine, but i want the player to warp to the vehicle which is not happening addEvent("VehicleSpawn",true) addEventHandler("VehicleSpawn",root, function (TheVehicleName,x,y,z) marker = createMarker(x+1,y,z-1,"cylinder",1.5,0,255,0,255) addEventHandler("onMarkerHit",marker, function (hitElement) if (source == marker) then if getElementType( hitElement ) == 'player' then RaceVehicle = createVehicle (tonumber(TheVehicleName), x+5,y,z) . warpPedIntoVehicle(hitElement ,RaceVehicle) end end end) end )
  20. LoooL, Bech traj3ou GTA 5? ti el owner Malek wala medri ech esmou, 7kit m3ah chway 3tani Mute
×
×
  • Create New...