1LoL1
Members-
Posts
944 -
Joined
-
Last visited
Everything posted by 1LoL1
-
Ok Solved i fixed to this: setVehicleColor(vehicle, r, g, b, r, g, b );
-
Thanks works. But how i can 2 car colors? now it's only 1.
-
Hello i created script but not work how i can fix this i mean: when i use /color RED so setVehicleColor(255, 0, 0) Amount = { "RED" = "255,0,0", "BLUE" = "1,1,1, "PINK" = "2,2,2, "BLACK" = "0,0,0", } function clr (player,command,color) local vehicle = getPedOccupiedVehicle(player) if color then setVehicleColor(vehicle, Amount[#color]) end end addCommandHandler("color", clr)
-
Not work now when i banned player so he have 2x Data2 and Data
-
So this? function WwW (banPointer, responsibleElement) local player = source local seconds = getBanTime(banPointer) - getRealTime().timestamp if (seconds) == 0 then setElementData(player, "Data", (getElementData(player, "Data") or 0) + 1) else setElementData(player, "Data2", (getElementData(player, "Data2") or 0) + 1) end end addEventHandler ( "onPlayerBan", getRootElement(), WwW )
-
But i have save system on Data and Data2 i want to only when player is banned and seconds is 0 so he get data +1 if seconds > 1 so he get data2 +1
-
Hello, i created script but not work can anyone please fix my code? I mean when seconds in ban is "0" so data will +1 and when ban will normal so data2 will +1. function WwW (player, seconds, data, additional) if (seconds) == 0 then setElementData(player, "Data", (getElementData(player, "Data") or 0) + 1) -- Permanent ban else setElementData(player, "Data2", (getElementData(player, "Data2") or 0) + 1) -- Other Ban end end addEventHandler ( "onPlayerBan", getRootElement(), WwW)
-
Then explain .. lel. You should use these things: onPlayerLogin getElementData setElementData Or if you know scripting with SQL then you could use it. Why should I? But it did not ask whether it can be done on MTA so I replied giving.
-
Add one end
-
Hello, i created script but when i use /markerr so marker is created but if i again use /markerr so marker is created again. How i can when marker is created and i want to again so outputChatBox("Marker is created") function www (source) w = createMarker( -2805.87890625,1318.779296875,7.1015625, "cylinder", 1.5, 255, 255, 0, 170 ) if w then else cancelEvent() outputChatBox("Marker is created", source, 255, 255, 255, true) end end addCommandHandler("markerr", www)
-
I don't understand but try this: function antinj ( p, _, jacked ) local occupied = getVehicleOccupant ( source ) if ( occupied ) then cancelEvent() outputChatBox("You can't ninja jacking other people car!", p ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), antinj )
-
Use tags
-
Cordinate you mean x, y, z from last position? Chat logs Save System but you need This to this script.
-
Try this: Here or setAccountData getAccountData
-
Why are you doing this off the topic?
-
This resource uses setElementVelocity and it just boosts the vehicle once or more times but not all the time. So he needs to change something in the handling but I don't know so wait until someone who has knowledge in this to answer. Good luck! oh thanks for info
-
Try this: exports.scoreboard:addScoreboardColumn ( "Level", getRootElement(), 9, 0.07 ) function scoreLevel () local account = getPlayerAccount(source) local Level = getElementData(source,"Level") or 0 if isGuestAccount ( account ) then setElementData(source, "Level",":Experience/Emblems/Guest.png") else local test = ":Experience/Emblems/"..tostring(Level)..".png" setElementData(source, "Level", test and {type = "image", src = test, height = 12, width = 16} or "N/A") end end addEventHandler("onPlayerSpawn", getRootElement(), scoreLevel)
-
What is in the video it is only all talks of GTA San Andreas.
-
Hello, i created script /police, /trucker, /nothing but how i can to: /TEAM /police = setPlayerTeam to Police /trucker = setPlayerTeam to Trucker /nil= setPlayerTeam to Nil please can anyone help me or get me functions? function w (source) setPlayerTeam(source, team) end addCommandHandler("trucker", w) function ww (source) setPlayerTeam(source, team2) end addCommandHandler("police", ww) function www (source) setPlayerTeam(source, nil) end addCommandHandler("nil", www)
-
Use tag.
