
^Dev-PoinT^
Members-
Posts
313 -
Joined
-
Last visited
Everything posted by ^Dev-PoinT^
-
Nice Script i test it its cool Man Thx For it
-
what the /debugscript 3 show?
-
Try This addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == GUIEditor_Button[1]) then local theplayer = getLocalPlayer() local theVehicle = getPedOccupiedVehicle setElementPosition (theplayer , 1523.9138183594, 1527.1204833984, 10.2602405548 ) setElementPosition (theVehicle , 1523.9138183594, 1527.1204833984, 10.2602405548 ) warpPedIntoVehicle ( theplayer, theVechicle ) end end)
-
clientSide -------- function Vehicle ( ) txd = engineLoadTXD ( "YourFileName.txd" ) engineImportTXD ( txd, 1082 ) dff = engineLoadDFF ( "YourFileName.dff", 1082 ) engineReplaceModel ( dff, 1082 ) end addEvent ( "replaceVeh", true ) addEventHandler ( "replaceVeh", getRootElement(), Vehicle ) serverSide------- function ReplaceT ( ) triggerClientEvent( "replaceVeh", getRootElement(), replaceVeh ) end addCommandHandler( "replace", ReplaceT )
-
use this function https://wiki.multitheftauto.com/wiki/WarpPedIntoVehicle
-
Thx SoldSnake14
-
Make a New Folder on Drive C: and put the compiler and make sure you script is without BOM and click right on it and run with adminstrator and compile your Files
-
not work my code work but outputChatBox need to be Like this [sA] [ip] not Sa .. ip
-
Hi all see My Code addEventHandler('onPlayerQuit', root, function(reason) outputChatBox('* ' .. getPlayerName(source) .. ' Has left the game [' .. reason .. ']',getRootElement(), 255, 0, 0) end ) function a () local flag = call(getResourceFromName("admin"), "getPlayerCountry", source) local ip = getPlayerIP( source ) setElementData(source,"Country",flag) outputChatBox(getPlayerName(source).."Has Join The Game From ["..flag..]..["..ip..]",root, 255,255,255) end addEventHandler("onPlayerJoin",getRootElement(),a) he say Dev-PoinT Has Join The Game From [sA127.0.0.1] how Make it Dev-PoinT Has Join The Game From [sA] [ip Here] i tryed but alwasy return false
-
Thx Kenix So mutch i will study your code
-
i dont get you Benxamix2
-
iam not good scripter like you are iam new in script i have errors in the smallest scripts like outputChatBox and colors and .... so if you can help me with it please stand there and do nothing
-
Hi all its work fine but the msg dont show You Have Picked up a .. function Health ( totalammo, killer, killerweapon, bodypart ) local x, y, z = getElementPosition ( source ) local health = createPickup ( x, y, z, 0, 40) addEventHandler("onPickupHit", health, Health) end addEventHandler ( "onPlayerWasted", getRootElement(), createDeathPickup ) function Health (thePlayer) setElementHealth(thePlayer,tonumber(getElementHealth(thePlayer))+tonumber(getPickupAmount(source))) destroyElement(source) end function onPickupHitShow ( thePlayer ) local a = getPickupType ( source ) if (a == 0) then outputChatBox(.. a " You Have Picked up.. ", thePlayer ), getRootElement(), 255, 255, 0, true) addEventHandler ( "onPickupHit", getRootElement(), onPickupHitShow ) i tryed over 10 time fix it but always get an errors
-
who did you fix it i want know so i can remmeber it on Future
-
what about this ? function createPlayerList () local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) local column = guiGridListAddColumn( playerList, "Players", 0.85 ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( player ), false, false ) end end end
-
try this function setGUI ( ) selectedRow, selectedCol = guiGridListGetSelectedItem( playerGridList ) gridPlayerName = guiGridListGetItemText( playerGridList, selectedRow, selectedCol ) guiSetText ( playerNameEdit, gridPlayerName ) end playerGridList = guiCreateGridList(7,12,183,420,false,tab0) playersColumn = guiGridListAddColumn(playerGridList,"Players",0.85) guiGridListSetSelectionMode(playerGridList,2) for id, plaItem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( playerGridList ) guiGridListSetItemText ( playerGridList, row, playersColumn, getPlayerName ( plaItem ), false, false ) end addEventHandler( "onClientGUIClick", playerGridList, setGUI ) setTimer ( setGUI, 1000, 1,)
-
Please i relay need help with This its hard
-
i make this its say exports.scoreboard:scoreboardAddColumn("Points") exports.scoreboard:scoreboardAddColumn("Rank") ranks = {} ranks[1] = {5,"Level 1!"} ranks[2] = {10,"Level 2!"} ranks[3] = {20,"Level 3!"} ranks[4] = {30,"Level 4!"} ranks[5] = {40,"Level 5!"} ranks[6] = {50,"Level 6!"} ranks[7] = {60,"Level 7!"} ranks[8] = {70,"Level 8!"} ranks[9] = {80,"Level 9!"} ranks[10] = {40,"Level 10!"} function addPoints(ammo, attacker, weapon, bodypart) local points = getElementData(attacker, "Points") if attacker and attacker ~= source then setElementData(attacker, "Points", tonumber(points) + 1) outputChatBox(getPlayerName(attacker).." killed "..getPlayerName(source).." and gained 1 point.", getRootElement(), 255, 255, 0, false) end end addEventHandler("onPlayerWasted", getRootElement(), addPoints) function onRankChanged(dataName) if ( dataName == "Points" ) then local playerPoints = getElementData( source, "Points" ) for i,rank in ipairs(ranks) do if ( playerPoints => rank[i][1] ) then setElementData(source, "Rank", rank[i][2]) end end end end addEventHandler("onElementDataChange",getRootElement(),onRankChanged) function onJoin ( ) setElementData(source, "Points", 0) end addEventHandler ( "onPlayerJoin", getRootElement(), onJoin) function onResStart ( ) for i,v in ipairs(getElementsByType ("player")) do if not ( getElementData( v, "Points" ) ) then setElementData( v, "Points", 0 ) end end end addEventHandler ( "onResourceStart", getResourceRootElement(), onResStart ) server.lua:30: ')' expected near '='
-
but iam not good scripter if any one fix it so i can learn form it
-
dosnt work Castillo its dont show the Msg and dont show the rank and points in Scoreboard!
-
so what is the code that work?
-
this set My level when i kill 10 Player goes to level 1 then level 2 ...?
-
use this https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup
-
yes but he can win the lvels esay i want if He Kill 10 Player = "Level 1" ... if +1 that wel make him if he kill 7 Players he got all the ranks i want 10 =Level 1 20 = level 2 Please