-
Posts
1,546 -
Joined
-
Last visited
Everything posted by Dimos7
-
@Veo did you try my code?
-
local sw, sh =guiGetScreenSize() local sx, sy = sw/1920, sh/1080 dxDrawRectangle(sx*0.008,sy*0.957,length + sx*55,sy*0.030, tocolor ( 0, 266, 0, 250 ) )
-
function enter (thePlayer) if (getPlayerMoney(thePlayer)>= 100) then setElementPosition (thePlayer, 834.66796875,7.431640625,1004.1870117188) setElementInterior(thePlayer, 3) takePlayerMoney(thePlayer, 100) else outputChatBox("#ff0000You Dont Have Enough Money!",thePlayer,255,255,255,true) end end addEventHandler("onMarkerHit",markerJoin,enter)
-
If you want only driver trun on/off the Light use this and check if seat is 0 which is driver getPedOccupiedVehicleSeat
-
[LF]Developer//Scriper to RPG Server [Non-Paid]
Dimos7 replied to BaHaa's topic in Looking for staff
I mean we need info about server and how to contact with you -
The problem is you put position and interior at benging put it when take the player money
-
function carToggleLights(player) if isPedInVehicle(player) then local veh = getPedOccupiedVehicle(player) if getVehicleOverrideLights(veh) ~= 2 then setVehicleOverrideLights(veh, 2) else setVehicleOverrideLights(veh, 1) end end end addCommandHandler("carlights", carToggleLights)
-
--This function is executed when a player joins, it sets the player's name-tag color to a random color. local function playerJoin() local red, green, blue = math.random (50, 255), math.random (50, 255), math.random (50, 255) setPlayerNametagColor(source, red, green, blue) end addEventHandler ("onPlayerJoin", root, playerJoin) --This function is executed when a player says something in chat, it outputs the player's message, with their nick colored to match their name tag color. local function playerChat(message, messageType) cancelEvent () if messageType == 0 then --Global (main) chat local red, green, blue = getPlayerNametagColor(source) outputChatBox(getPlayerName(source)..": #FFFFFF"..message, root, red, green, blue, true ) outputServerLog("CHAT: "..getPlayerName(source)..": "..message)--NOTE: Beacuse we cancelled the onPlayerChat event, we need to log chat manually. end end addEventHandler("onPlayerChat", root, playerChat)
-
I think no for change it you need dxCreateShader dxCreateTexture dxSetShaderValue engineApplyShaderToWorldTexture
-
post the code here
-
[LF]Developer//Scriper to RPG Server [Non-Paid]
Dimos7 replied to BaHaa's topic in Looking for staff
Any information about it? -
function winnerMessenger ( text, playerName) win.text = text win.name = playerName removeEventHandler("onClientRender",root,winMsg) addEventHandler("onClientRender",root,winMsg) triggerServerEvent("plusz1", localPlayer) end addEvent("winnerMessage",true) addEventHandler("winnerMessage", root, winnerMessenger) function asdasd() if isElement(source) and source == client then if getPlayerRank( source ) ~= 1 then return end local gyozelmek = getElementData(source,"Győzelmek") or 0 setElementData(source, "Győzelmek", gyozelmek + 1 ) givePlayerMoney(source,2) outputChatBox("#FFffFFAmiért megnyerted a kört, kaptál #00FFFF'2' coint!",source,r,g,b,true) -- if you want messsage apear to everybody change the source to root thats all end end end addEvent("plusz1", true) addEventHandler("plusz1", root, asdasd) try this
-
I think you can't you need each time change the bind for that
-
function faryad (thePlayer, cmd, ...) local MetrazhDadZadan = 20 local msg = table.concat({...}, " ") local nick=getPlayerName(thePlayer) local x, y, z = getElementPosition(thePlayer) for _,v in ipairs(getElementsByType("player")) do local px, py, pz = getElementPosition(v) if getDistanceBetweenPoints3D(x, y, z, px, py, pz) <= MetrazhDadZadan then if msg ~="" then outputChatBox(nick.." Shout : "..msg,v,255,255,255,true) else return outputChatBox("Syntax:/"..cmd.." [text]", thePlayer, 255, 0, 0) end end end end addCommandHandler("s", faryad)
-
function faryad (thePlayer, cmd, ...) local MetrazhDadZadan = 20 local msg = table.concat({...}, " ") local nick=getPlayerName(thePlayer) local x, y, z = getElementPosition(thePlayer) for _,v in ipairs(getElementsByType("player")) do local px, py, pz = getElementPosition(v) if getDistanceBetweenPoints3D(x, y, z, px, py, pz) <= MetrazhDadZadan then outputChatBox(nick.." Shout : "..msg,v,255,255,255,true) end end end addCommandHandler("s", faryad)
-
We are not your selve there are resource at community site to download them
-
isObjectInACLGroup aclGetGroup setAccountData r, g, b = string.gsub("#%2x%2x%2x") setPlayerNametagColor
- 1 reply
-
- 1
-
With your code say something in debugscipt 3?
-
/debugscipt 3 say any errors or warnings?
-
You have put resource in acl admin group?
-
function givevip (playerSource, commandName, accountName) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) local accountName= getAccountName (getPlayerAccount(accountName)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then if accountName then aclGroupAddObject (aclGetGroup("VIP"), "user."..accountName) outputChatBox ("Account '"..accountName.."' add to VIPs successfully!", playerSource) else outputChatBox ("Wrong Account ", playerSource) end end end addCommandHandler ("addvip", givevip) function remvip (playerSource, commandName, accountName) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) local accountName = getAccountName (getPlayerAccount(accountName)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then if accountName then aclGroupRemoveObject (aclGetGroup("VIP"), "user."..accountName) outputChatBox ("Account '"..accountName.."' Remove from VIPs", playerSource) else outputChatBox ("Wrong Account ", playerSource) end end end addCommandHandler ("delvip", remvip) Try this
-
I mean that mta have it but his own as understand you want to not be show the message of /me
-
that exist from mta itself you can bult one with your own