-
Posts
1,239 -
Joined
-
Last visited
Posts posted by -.Paradox.-
-
-
-
thanks it work fine You are the best Castillo
-
And if i want to get player level or exp ?
-
didnt work please another solution
-
addEventHandler ( "onElementModelChange", root, function ( _, newModel ) if ( newModel == 132 ) then setPedWalkingStyle ( source, 10 ) else setPedWalkingStyle ( source, 0 ) end elseif ( newModel == 118 ) then setPedWalkingStyle ( source, 45 ) else setPedWalkingStyle ( source, 0 ) end end )
like that
-
Thanks, and can i add one more skin id 45 walking style 118 ?
-
Hello,
I need a resource that if player skin id is 10 his walking style set to 132,
i have this resource but i want it without command i mean work automatically
addCommandHandler ("s", function ( ped ) setPedWalkingStyle ( 10, 132) end )
Thanks for helping
-
Can you explain me please
-- needs configurable blip colors, and team support root = getRootElement () color = { 0, 255, 0 } players = {} resourceRoot = getResourceRootElement ( getThisResource () ) function onResourceStart ( resource ) for id, player in ipairs( getElementsByType ( "player" ) ) do if ( players[player] ) then createBlipAttachedTo ( player, 0, 2, players[source][1], players[source][2], players[source][3] ) else createBlipAttachedTo ( player, 0, 2, color[1], color[2], color[3] ) end end end function onPlayerSpawn ( spawnpoint ) if ( players[source] ) then createBlipAttachedTo ( source, 0, 2, players[source][1], players[source][2], players[source][3] ) else createBlipAttachedTo ( source, 0, 2, color[1], color[2], color[3] ) end end function onPlayerQuit () destroyBlipsAttachedTo ( source ) end function onPlayerWasted ( totalammo, killer, killerweapon ) destroyBlipsAttachedTo ( source ) end function setBlipsColor ( source, commandName, r, g, b ) if ( tonumber ( b ) ) then color = { tonumber ( r ), tonumber ( g ), tonumber ( b ) } for id, player in ipairs( getElementsByType ( "player" ) ) do destroyBlipsAttachedTo ( player ) if ( players[player] ) then createBlipAttachedTo ( player, 0, 2, players[source][1], players[source][2], players[source][3] ) else createBlipAttachedTo ( player, 0, 2, color[1], color[2], color[3] ) end end end end function setBlipColor ( source, commandName, r, g, b ) if ( tonumber ( b ) ) then destroyBlipsAttachedTo ( source ) players[source] = { tonumber ( r ), tonumber ( g ), tonumber ( b ) } createBlipAttachedTo ( source, 0, 2, players[source][1], players[source][2], players[source][3] ) end end addCommandHandler ( "setblipscolor", setBlipsColor ) addCommandHandler ( "setblipcolor", setBlipColor ) addEventHandler ( "onResourceStart", resourceRoot, onResourceStart ) addEventHandler ( "onPlayerSpawn", root, onPlayerSpawn ) addEventHandler ( "onPlayerQuit", root, onPlayerQuit ) addEventHandler ( "onPlayerWasted", root, onPlayerWasted ) function destroyBlipsAttachedTo(player) local attached = getAttachedElements ( player ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end
-
Hello,
I want a little help,
If a player get in team his nametagcolor and blipcolor change to team color like Example : If player was in Forever Team he's name and blip should be red. thanks for help
-
Help me please
-
I want a exp/level system that if player killed somebody he earn +5 exp and if he have 100exp he move to level 2
0 : level 1
100 : level 2
500 : level 3
1500 : level 4
3000 : level 5
4500 : level 6
Does it need client.lua
-
Hi, can someone see what wrong here ?
server.lua
exports.scoreboard:scoreboardAddColumn("EXP") function win(ammo, killer, weapon, bodypart) local H = getElementData(killer, "EXP") local killer1 = getPlayerName(killer) local noob = getPlayerName(source) if killer and killer ~=source then if tonumber(H) < 10 then setElementData(killer, "EXP", tonumber(H)+1) end outputChatBox(killer1 .. "Killed " .. noob .. " and gained +1 EXP", getRootElement(), 255, 255, 0, false) end end addEventHandler("onPlayerWasted", getRootElement(), Win)
Thanks for help !
-
Anyway can you remove the vehicle color function it work perfectly thanks
-
createBlip(0,0,0,0) = createBlip(r,g,b,a) ?
-
I can't understand.
-
Can you remove vehicle color it's just a fail, and those it work with blip too.
-
addEventHandler("onResourceStart",resourceRoot,function() for i,v getElementsByType("vehicle")do local player = getVehicleController(i) if(player)then local pedTeam = getPlayerTeam(player) if(pedTeam)then local r,g,b = getTeamColor(pedTeam) setVehicleColor(i,r,g,b) else setVehicleColor(i,255,255,255) end else setVehicleColor(i,255,255,255) end end end) addEventHandler("onVehicleStartEnter",root,function(player,_,jacked) local r,g,b = getTeamColor(getPlayerTeam(player)) setVehicleColor(source,r,g,b) end) addEventHandler("onVehicleExit",root,function() setVehicleColor(source,255,255,255) end)
-
How ?
And i'm using autoteams
-
Hello everybody,
I have a server on MTA, with 5 team. Everything is okay with the script, but I want to add one thing.
When I put players in the team, their name have the same color in chat and blip example : Fallen Army Team : have green color, I want this green color for all team player because they can't have same color just in team chat.
Can someone help me for this? Thank you!
-
ok
& can i ask ?
-
addEventHandler ( "onPlayerLogin", root, function ( ) if ( isPlayerInACL ( source, "Forever" ) ) then spawnPlayer ( source, 5, 00565, 95 ) elseif ( isPlayerInACL ( source, "Saint Row" ) ) then spawnPlayer ( source, 5, 00565, 95 ) end end ) function isPlayerInACL(player,acl) local account = getAccountName(getPlayerAccount(player)) if(isObjectInACLGroup("user."..account,aclGetGroup(acl))) then return true else return false end end
Like that ?
-
-
i did but no body helped me
-
Hello,
i want add spawnpoint for five teams : Forever, Saint Row, Task Forces, Monster Energy, Iron Weasel.
P.S : I added them to acl and i'm using play gamemode
Some Problem in Level System Saving :)
in Scripting
Posted
Like that ? i want this only for exp