-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
/debugscript 3 ? Code بدلاً من lua و مره ثانية أستعمل xx = createPed(0,-1925.7059326172,2547.720703125,419.80780029297) function wp() setPedAnimation(xx, "ped", "WALK_armed") end addCommandHandler("امشي", wp) function wpStop() setPedAnimation(xx) end addCommandHandler("اوقف", wpStop)
-
It's look like thePlayer is not defined i can't see how you're using this function or what event are you using.
-
Sorry but this topic have no benefit at all. mapmanager is added by default in Group 'Moderator' i don't see a point of adding it every 50 ms. No one will have this problem, unless you have abuse/bad admins in your server that messed with ACL Manager.
-
setPlayerNametagShowing (playerName, false) will hide Player Name Tag, also playerName here is not string it must be player element. you can hide blip using this https://wiki.multitheftauto.com/wiki/SetElementVisibleTo This function i find it at wiki, it will help you to get the blip element. function getBlipAttachedTo( thePlayer ) local blips = getElementsByType( "blip" ) for k, theBlip in ipairs( blips ) do if getElementAttachedTo( theBlip ) == thePlayer then return theBlip end end return false end
-
function fixplayerveh(player, command, target) if (hasObjectPermissionTo(player, "function.aexec")) then local targetPlayer = getPlayerFromNamePart(target) if target and targetPlayer then local veh = getPedOccupiedVehicle(targetPlayer) if veh then fixVehicle(veh) else outputChatBox("The player is not in a vehicle.",player,255,0,0) end else outputChatBox("SYNTAX: /fixveh [Player]",player,255,194,14) end else outputChatBox("You don't have Permission.",player,255,0,0) end end addCommandHandler("fixveh", fixplayerveh)
-
https://wiki.multitheftauto.com
-
Try change 'true to 'false' if ( hasObjectPermissionTo ( thePlayer, "command.makeadmin", true ) ) then if ( hasObjectPermissionTo ( thePlayer, "command.makeadmin", false) ) then Not sure if this will work, but just try.
-
something like that cont = 3 setTimer(function() cont = cont -1 end,1000,3) you can find resource here https://community.multitheftauto.com - search 'countdown'
-
Does'nt Set Gui Invisible No Errors Plus Censor Edit Boxes
TAPL replied to micheal1230's topic in Scripting
'onClientPlayerJoin' https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin This event is triggered when a player joins a server. It is triggered for all players except the local player, as the local player joins the server before their client-side resources are started. It would also be possible for two players to join within a few seconds of each other and for the two players' scripts may not receive onClientPlayerJoin events as their scripts wouldn't have started yet. so you should use event onClientResourceStart -
We don't accept request, learn and make it by yourself and if you have any problem Show Your Code. https://wiki.multitheftauto.com/wiki/Scr ... troduction
-
The challenge of making application programmers Maud
TAPL replied to hassan.k.s.a's topic in Scripting
Did anyone understand anything? -
You means make it for two groups or more? if so createBlip(1125.5, 1285.0999755859, 12.800000190735, 41) local thegate = createObject(3095, 1125.5, 1285.0999755859, 12.800000190735, 270, 179.87524414063, 179.87524414063) local Marker = createMarker(1125.9000244141, 1285.0999755859, 9.8000001907349, "cylinder", 6, 255, 0, 0, 0) function hitmyelement(hitPlayer) local accName = getAccountName(getPlayerAccount(hitPlayer)) if isObjectInACLGroup("user."..accName, aclGetGroup("Moderator")) or isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then moveObject(thegate, 1000, 1125.5, 1285.0999755859, 20.799999237061) end end addEventHandler('onMarkerHit', Marker, hitmyelement) function leavedoor(leavePlayer) moveObject(thegate, 1000, 1125.9000244141, 1285.0999755859, 12.800000190735) end addEventHandler('onMarkerLeave', Marker, leavedoor)
-
just use hitPlayer instead of thePlayer.
-
This was simple script and it's server side, making it client side it may not synced anyway.
-
https://community.multitheftauto.com/index.php?p= ... ils&id=556 or even better: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14911
-
local thegate = createObject(3095, 1125.5, 1285.0999755859, 12.800000190735, 270, 179.87524414063, 179.87524414063) local Marker = createMarker(1125.9000244141, 1285.0999755859, 9.8000001907349, "cylinder", 6, 255, 0, 0, 255) function hitmyelement(hitPlayer) moveObject(thegate, 10000, 1125.5, 1285.0999755859, 20.799999237061) end addEventHandler('onMarkerHit', Marker, hitmyelement) function leavedoor(leavePlayer) moveObject(thegate, 10000, 1125.9000244141, 1285.0999755859, 9.8000001907349) end addEventHandler('onMarkerLeave', Marker, leavedoor)
-
NOTE: When using optional arguments, you must supply all arguments before the one you wish to use. For more information on optional arguments, see Optional Arguments.
-
addEventHandler('onResourceStart', resourceRoot, function() outputChatBox('Press F2 To Open Shop Window By x1ABooDx',255,255,0) end) في السيرفر يا حبيبي مطلوب لاعب و أنت ما حطيت https://wiki.multitheftauto.com/wiki/OutputChatBox visibleTo: This specifies who the chat is visible to. Any players in this element will see the chat message.
-
Your post is out of topic and has no benefit at all, just increase cont.
-
players = createTeam ( "Players", 255, 255, 255 ) addEventHandler("onPlayerJoin",root, function () setPlayerTeam ( source, players ) end) setTimer(function() setTeamFriendlyFire ( players , false ) end,50,1)
-
oh my bad function furbo(state) if state == "left" then if ( source == GUIEditor_Button[4] ) then local Player = getLocalPlayer() local thetext = guiGetText(GUIEditor_Edit[2]) if thetext ~= "" then triggerServerEvent("SendHelp", getLocalPlayer(), Player, thetext) guiSetText(GUIEditor_Memo[1], guiGetText(GUIEditor_Edit[2])) -- is that right ? guiSetText(GUIEditor_Edit[2], "") else outputChatBox("You didn't typed any thing", 255, 255, 0 ) end end end end addEventHandler("onClientGUIClick", getRootElement(), furbo) addEventHandler("onClientGUIAccepted", GUIEditor_Edit[2], furbo)
-
You want copy the text in edit and put it in memo? if so function furbo(state) if state == "left" then if ( source == GUIEditor_Button[4] ) then local Player = getLocalPlayer() local thetext = guiGetText(GUIEditor_Edit[2]) if thetext ~= "" then triggerServerEvent("SendHelp", getLocalPlayer(), Player, thetext) guiSetText(GUIEditor_Edit[2], "") guiSetText(GUIEditor_Memo[1], guiGetText(GUIEditor_Edit[2])) -- is that right ? else outputChatBox("You didn't typed any thing", 255, 255, 0 ) end end end end addEventHandler("onClientGUIClick", getRootElement(), furbo) addEventHandler("onClientGUIAccepted", GUIEditor_Edit[2], furbo)
-
--------------------------------------- shop12 = guiCreateButton(145,300,61,26,"shield 1000$",false,tab5) shopImage12 = guiCreateStaticImage(145,230,64,64,"shop/12.png",false,tab5)---shield -------------------------------------- -----shield------- addEventHandler("onClientGUIClick", root, function() if(source == shop12) then triggerServerEvent("buyShield",localPlayer) end end) addEventHandler("onClientResourceStart", getRootElement(), function (rsc) if (rsc == getThisResource()) then ShieldTXD = engineLoadTXD ("sh/riot_shield.txd"); engineImportTXD (ShieldTXD, 1631); ShieldDFF = engineLoadDFF ("sh/riot_shield.dff", 487); engineReplaceModel (ShieldDFF, 1631); ShieldCOL = engineImportCOL ("sh/riot_shield.dff") engineReplaceCOL ( ShieldCOL, 1631 ) end end)
