[DMC]
Members-
Posts
165 -
Joined
-
Last visited
Everything posted by [DMC]
-
If you ask me its better not to trade, then you will keep originality
-
i dont know what your talking about, can you maybe explain it in english
-
i dont really see what im overwriting but its still not working, i read what you say and no errors nothing ;S and its not outputting it to the chatbox function findPlayerByName(playerPart) local pl = getPlayerFromName(playerPart) if isElement(pl) then return pl else for i,v in ipairs (getElementsByType ("player")) do if (string.find(getPlayerName(v),playerPart)) then return v end end end end function boomPlayer(playerSource, command, arg1, theVehicle) local playerElement = findPlayerByName(arg1) if playerElement then local name = getPlayerName(playerElement) local theVehicle = getPedOccupiedVehicle (playerSource) local sourceName = getPlayerName(playerElement) blowVehicle ( theVehicle ) outputChatBox (getPlayerName(playerElement).." Has been destroyed by "..getPlayerName(playerSource).."!", getRootElement(), 255, 255, 0, true) end end addCommandHandler("boom", boomPlayer)
-
Ty to varez i could make this function findPlayerByName(playerPart) local pl = getPlayerFromName(playerPart) if isElement(pl) then return pl else for i,v in ipairs (getElementsByType ("player")) do if (string.find(getPlayerName(v),playerPart)) then return v end end end end function boomPlayer(playerSource, command, arg1, theVehicle) local playerElement = findPlayerByName(arg1) if playerElement then local name = getPlayerName(playerElement) local theVehicle = getPedOccupiedVehicle (playerSource) local sourceName = getPlayerName(playerSource) blowVehicle ( theVehicle ) outputChatBox (""..getPlayerName(playerElement).."Has been destroyed by "..getPlayerName(playerSource).."!", getRootElement(), 0, 0, 5, true) end end addCommandHandler("boom", boomPlayer) but its not working at all, and no errors
-
haha! that made my day! thanks! hhahaha
-
in our server we got a locate Join: Player joined from Country(..) i know him, he joins our server sometimes and he just stole it... (client side) he doesnt got the serverside because its ours
-
When i go to my resource browser the ACL config stuff is gone it just says map, resource, scoreboard (ip/port in browser) can anyone help me
-
huh but i replaced dff ones
-
hey i got some maps maybe we can trade
-
no lol just rename the zip folder with race- infront of it
-
ty but can someoen tell me how i do /cash part of name and not type whole name
-
function checkMoney(thePlayer, command, who) if (who == nil ) or who == false then outputChatBox ("ERROR: You must insert a valid player name.", thePlayer, 255, 0, 0, false) else local money = getPlayerMoney(targetPlayerName) local Name = getPlayerName(targetPlayerName) local targetPlayerName = getPlayerFromName (who) outputChatBox("*"..who.." Has $"..getPlayerMoney(who).."",getRootElement(),255,255,0) end addCommandHandler("cash", checkMoney) And yes varez i first thought about it cuz first i had getPlayerMoney(thePlayer) and i know thats just wrong Please any help its saying local money/name has bad arguments
-
ok varez what your saying is true minigoveya added the script in a resource not map and because i got a race server and i know this stuff, it wont change the sky gradient but it will change time/weather if its overriding is set to false in race config you have all the reason the script what DMC Give me work, but, i've to restart that for all maps... dont stay 4ever ;/ what should i and for you mini, Go to Admin panel and then tab resources and search for race, when you find it double click it and search for sky, time settings and set overriding to true im sure this will work because i just tested it myself
-
you know what i mean (fixed)
-
function Miniclient () setWaterColor( 255, 0 , 0 ) -- Sets water to red (r,g,b) setSkyGradient( 0 , 0 , 0 , 0 , 0 , 0 ) -- Sets sky to black (r,g,b - r,g,b) end addEventHandler( "onClientResourceStart", resourceRoot, Miniclient )
-
srry maybe u can give me those links here again and i will try to think and learn more about lua
-
function addStatsData() setElementData(localPlayer,"Race Loses", +1) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), addStatsData) Like u did + i tried that before but it didnt work. but im sure it needs to work cuz i tried +1 before and then it worked but now it doesnt anymore
-
looks complicated function addStatsData() x = getElementData if not nil and not false setElementData (localPlayer,"Race Loses", x+1) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), addStatsData) i tried this
-
function player_Spawn ( ) local sound = playSound("1.wav",false) setSoundVolume(sound, 2.0) end addEventHandler ( "onClientPlayerSpawn", getRootElement(), player_Spawn ) try this
-
function addStatsData() setElementData(localPlayer,"Race Loses",0) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), addStatsData) Well im using this to set in a label the amount of DM's lost But when i die it sets to 0 and when i change 0 to 5 it sets to 5 My question is how can i do +1 every time i die
-
ye u mi550 no imperio hes not cookie he meant maybe if you are cookie? just eat your yoghurt
