-
Posts
563 -
Joined
-
Last visited
Everything posted by Perfect
-
This still wont work, if u wanna try it, go to the police station at SA and go to the triads marker it wont do anything. Found the prob.. it says if ( source == theEntrace ) then instead of if ( source == theEntrance ) then one more thing, how can i make it teleport the player into an interior? you can use setElementInterior
-
What you mean? and why that was not working ?
-
That's different, since you'll need a different table because the script I posted is a lua table, removed when the resource stops/restarts. ok, i tried but it was not working! function autounban(player,cmd,targetPlayer) tPlayer = getPlayerFromName(targetPlayer) if tPlayer then if not getElementData(tPlayer, "auto.unban") then setElementData(tPlayer, "auto.unban", true) outputChatBox("You have given unbanned protection to "..targetPlayer.." !", player) else setElementData(tPlayer, "lift.permission", false) outputChatBox("You have taken unbanned protestion from "..targetPlayer.." !", player) end end end addCommandHandler("banprotect", autounban) function(player,targetPlayer) tPlayer = getPlayerFromName(targetPlayer) if getElementData(player, "auto.unban") then local autoUnban = { [ "getPlayerSerial(tPlayer)" ] = true, [ "getPlayerIP(tPlayer)" ] = true, [ "getPlayerIP(tPlayer)" ] = true } addEventHandler ( "onBan", root, function ( theBan ) local bSerial = getBanSerial ( theBan ) local bIP = getBanIP ( theBan ) local bNick = getBanNick ( theBan ) if ( autoUnban [ bSerial ] or autoUnban [ bIP ] or autoUnban [ bNick ] ) then removeBan ( theBan ) end end )
-
ah, sorry my fault 1. Place the entire zip in MTA\server\mods\deathmatch\resources. 2. Start your server and type: start neon 3) get in car 4) open admin panel then click on neon then write in Execute Command then add this call(getResourceFromName("neon"),"addNeon",getPedOccupiedVehicle(getPlayerFromName("sumariello")),true) then click on Server 5) then write /neon 255 0 0 ok then itwill say something like Command executed! Result: true
-
OMG, Worked , Thnx!!!. ok there is any way to add players using console ? like this /banprotect "playername"
-
Maybe he want they can kill each other EDIT: and he said when he add / script does'nt work ?
-
ok, like this ? "Admin"> "Moderator"> "SuperModerator"> "Admin"> "RPC"> "resource.admin"> "resource.webadmin"> "resource.autounban"> "user.Perfect">
-
Hi, can you tell me how to get player details right and other rights ? i hear give rights for that, for this but don't how
-
Maybe Try This "Teams الأفرقة" /> "Rebel" friendlyfire="true" /> "يجب أن نحصل على حقوقنا وأن لا ندع أي شيء يقف في طريقنا" /> "255" green="0" blue="0" /> "ثائر" id="1" > "1475.9217529297" y="-2240.7573488281" z="13.3828125" rot="90" /> "وفاقي" id="7" > "1475.9217529297" y="-2240.7573488281" z="13.3828125" rot="90" /> "إئتلافي" id="2" > "1475.9217529297" y="-2240.7573488281" z="13.3828125" rot="90" /> "قطيفي" id="14" > "2103.2326660156" y="1013.2601318359" z="10.8203125" rot="90" /> "18" ammo="50" /> "5" ammo="100" /> "41" ammo="100" /> "43" ammo="100" /> "1475.9217529297" y="-2240.7573488281" z="13.3828125" /> "1475.9217529297" y="-2240.7573488281" z="13.3828125" /> you forgot /> "Teams الأفرقة" > "Rebel" friendlyfire="true" > that should be "Teams الأفرقة" /> "Rebel" friendlyfire="true" />
-
Hi, try this 1. Place the entire zip in MTA\server\mods\deathmatch\resources. 2. Start your server and type: start neon 3) open admin panel then click on neon then write in Execute Command then add this call(getResourceFromName("neon"),"addNeon",getPedOccupiedVehicle(getPlayerFromName("sumariello")),true) then click on Server 4) then write /neon 255 0 0
-
ok, ok and what about screenshot ?
-
I can't start resource, i always get meta pharse (something) and i checked meta more then 10 times and i also try coping other resource meta and pasting but still getting meta phase "Perfect" name="robot" description="controllable ped" version="1.0.1" type="script" /> and can you tell me what thing happend if i write /robot 2 or more times ?
-
you mean code is complete ? if i write warpstatus then i can disallowed warping ?
-
Hi All, I can't take screenshot (Yes, i pressed f12) then I open console and i saw when i press f2 i got "Couldn't lock the surface: 88760827" in console Help me!!! EDIT: and how i can post photos on forum ? (Sorry for out of topic)
-
You have missed 'end' where i put "if (getElementData(targetPlayer,"warp.status") == false) then" ?
-
explain in more details pls!
-
thnx but I don't know where i put "if (getElementData(targetPlayer,"warp.status") == false) then"
-
ok i try but not working here is my code function warpStatus(player,cmd,) if Player then if not getElementData(player, "warp.status") then setElementData(player, "warp.status", true) outputChatBox("You have enabled your warping", player) else setElementData(player, "lift.permission", false) outputChatBox("You have disabled warping", player) end end end addCommandHandler("warpstatus", warpStatus) function warpMe(targetPlayer) if getElementData(player, "warp.status") then if isPedDead(source) then spawnMe() end local vehicle = getPedOccupiedVehicle(targetPlayer) if not vehicle then -- target player is not in a vehicle - just warp next to him local x, y, z = getElementPosition(targetPlayer) clientCall(source, 'setPlayerPosition', x + 2, y, z) else -- target player is in a vehicle - warp into it if there's space left if getPedOccupiedVehicle(source) then --removePlayerFromVehicle(source) outputChatBox('Get out of your vehicle first.', source) return end local numseats = getVehicleMaxPassengers(vehicle) for i=0,numseats do if not getVehicleOccupant(vehicle, i) then if isPedDead(source) then local x, y, z = getElementPosition(vehicle) spawnMe(x + 4, y, z + 1) end warpPedIntoVehicle(source, vehicle, i) return end end outputChatBox('No free seats left in ' .. getPlayerName(targetPlayer) .. '\'s vehicle.', source, 255, 0, 0) end local interior = getElementInterior(targetPlayer) setElementInterior(source, interior) setCameraInterior(source, interior) end
-
I did'nt understand. can you give any simple example and can you explain me better, what i do with that functions ?
-
I know i need to edit but i don't know how use those funcions and yes i try wiki but can't help. can you explain me how to use those functions or can you make disable warping for me Pls ?
-
Hi all, How to disable warp players to me. I mean if players try to warp me then they can't and got message "this player diable warping". yes by using command Help Pls!!!
-
addCommandHandler("getguard", function(p) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then if(ablauf[p] == true) then return end ablauf[p] = true local x, y, z = getElementPosition(p) ped[p] = createPed(164, x, y+1, z) setElementData(ped[p], "besitzer", getPlayerName(p)) setElementData(ped[p], "bodyguard", true) giveWeapon(ped[p], 25, 99999, true) setPedStat (ped[p], 72, 999) addEventHandler("onPedWasted", ped[p], function() local ped = source setTimer(destroyElement, 1000, 1, ped) ablauf[p] = false end) end)