Jump to content

CowTurbo

Members
  • Posts

    385
  • Joined

  • Last visited

Everything posted by CowTurbo

  1. CowTurbo

    Clan Tags

    freeroam can have chat script too ?
  2. for those? Wow, pro scripter when you done it with 1 week (Y) Respect man!
  3. Im looking for some sort of team, where i can work for hosts, like, if you got host named hosting service, then i can make the server named hosting service freeroam or so. I know my english isnt realy good but i can understand , and talk it a bit. So, now you will ask, how i can prove myself that i can script ? This is one video, of my server. The server is opened, and it have most times atleast 4 players in. We got visit-and-come-back players. I would be realy happy if some moderator change this to the youtube window ? I dont know, but youtube button dont work for me.So, why i need hosting service ? Thats easy question, i got my own team, but, we arent rly rich, and i need server for team. We have earned some money, but, this isnt so much, that we can buy good slots server. Currently we got 12 slots. The hosting service, who accepts me can have nice server. The current mR|Team roleplay can be their.And i will make much more gamemodes, on their request. I hope you all can understand what i meaned. Thx I will waiting for PM's or reply 's for request =) Thx for reading.
  4. or, easyest way is edit playerblips resource. -- needs configurable blip colors, and team support root = getRootElement () players = {} resourceRoot = getResourceRootElement ( getThisResource () ) function onResourceStart ( resource ) for id, player in ipairs( getElementsByType ( "player" ) ) do if ( players[player] ) then if ( getPlayerTeam" class="kw2">getPlayerTeam ( player ) ) then local r, g, b = getTeamColor ( player ) createBlipAttachedTo ( player, 0, 2, r, g, b ) else createBlipAttachedTo ( player, 0, 2, 255,255,255 ) end else createBlipAttachedTo ( player, 0, 2, r,g,b ) end end end function onPlayerSpawn ( spawnpoint ) if ( players[source] ) then if ( getPlayerTeam" class="kw2">getPlayerTeam ( player ) ) then local r, g, b = getTeamColor ( player ) createBlipAttachedTo ( player, 0, 2, r, g, b ) else createBlipAttachedTo ( player, 0, 2, 255,255,255 ) end else local r, g, b = getPlayerNametagColor ( player ) createBlipAttachedTo ( source, 0, 2, r, g, b ) 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 if ( getPlayerTeam" class="kw2">getPlayerTeam ( player ) ) then local r, g, b = getTeamColor ( player ) createBlipAttachedTo ( player, 0, 2, r, g, b ) else createBlipAttachedTo ( player, 0, 2, 255,255,255 ) end else local r, g, b = getPlayerNametagColor ( player ) createBlipAttachedTo ( player, 0, 2, r, g, b ) 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 ) } if ( getPlayerTeam" class="kw2">getPlayerTeam ( player ) ) then local r, g, b = getTeamColor ( player ) createBlipAttachedTo ( player, 0, 2, r, g, b ) else createBlipAttachedTo ( player, 0, 2, 255,255,255 ) end 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 try this...
  5. stop playerblips resource, and create your own functions for blips.
  6. Theres a resource , varez made, ( drug ) which makes camera moving side to side, look for community, search for "drug"
  7. which gamemode are you using ? If you are using your own mode, then replace that with your respawn function. ( Server side ) function respawnToHome() local skin = getElementModel ( source ) local playeraccount = getPlayerAccount ( source ) local house = getAccountData ( playeraccount, "house" ) if ( house == "yes" )then local housex = getAccountData ( playeraccount, "housex" ) local housey = getAccountData ( playeraccount, "housey" ) local housez = getAccountData ( playeraccount, "housez" ) if ( housex ) and ( housey ) and ( housez ) then spawnPlayer ( source, housex, housey, housez, 0, skin ) end else -- HERE ADD YOUR OTHER RESPAWN FUNCTIONS ( IF THE PLAYER DONT HAVE HOME ) end end addEventHandler ("onPlayerWasted",getRootElement(), respawnToHome ) If you are using play then replace this in play folder .lua file addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) repeat until spawnPlayer ( player, 2412+math.random(1,1), -1413+math.random(1,1),24.4, 90, math.random(9,288) ) fadeCamera(player, true) setCameraTarget(player, player) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) function respawnToHome() local skin = getElementModel ( source ) local playeraccount = getPlayerAccount ( source ) local house = getAccountData ( playeraccount, "house" ) if ( house == "yes" )then local housex = getAccountData ( playeraccount, "housex" ) local housey = getAccountData ( playeraccount, "housey" ) local housez = getAccountData ( playeraccount, "housez" ) if ( housex ) and ( housey ) and ( housez ) then spawnPlayer ( source, housex, housey, housez, 0, skin ) end else setTimer(spawn, 1800, 1, source) end end addEventHandler ("onPlayerWasted",getRootElement(), respawnToHome ) If you want that too, when player joins and spawn at home with play resource, then use that: addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) repeat until spawnPlayer ( player, 2412+math.random(1,1), -1413+math.random(1,1),24.4, 90, math.random(9,288) ) fadeCamera(player, true) setCameraTarget(player, player) end addEventHandler("onPlayerJoin", root, function() local playeraccount = getPlayerAccount ( source ) local house = getAccountData ( playeraccount, "house" ) if ( house == "yes" )then local housex = getAccountData ( playeraccount, "housex" ) local housey = getAccountData ( playeraccount, "housey" ) local housez = getAccountData ( playeraccount, "housez" ) if ( housex ) and ( housey ) and ( housez ) then spawnPlayer ( source, housex, housey, housez, 0, skin ) end else spawn( source) end end end ) function respawnToHome() local skin = getElementModel ( source ) local playeraccount = getPlayerAccount ( source ) local house = getAccountData ( playeraccount, "house" ) if ( house == "yes" )then local housex = getAccountData ( playeraccount, "housex" ) local housey = getAccountData ( playeraccount, "housey" ) local housez = getAccountData ( playeraccount, "housez" ) if ( housex ) and ( housey ) and ( housez ) then spawnPlayer ( source, housex, housey, housez, 0, skin ) end else setTimer(spawn, 1800, 1, source) end end addEventHandler ("onPlayerWasted",getRootElement(), respawnToHome ) Hope it helps.
  8. i have setted that in server side. For now, but still same problem.
  9. So, i have this problem, i got Car missions script, you deliver car to the flag. If u finish u get money, everything works fine, it gives money and all, but, i cant use the money. Its like unvisible, its seting my money up, I can see it by hud, but i cant see in scoreboard , ( its my last money there ( I have scoreboard script which re-checks money every sec )) Example: I Go to mission, i got 4 k. Mission gives me 10k when i end, now i got 14k in hud, I take taxi, taxi cost 150 $, and my money runs to 3 850 $ . So, the 10k which mission gived me, i cant use it. Same is in my vehicle shop, i earn money using mission, ( walk back to the car mission location ) and i go buying a car, it tolds me that i dont have enought money, but i have! Hud show me ( i got custom hud ) So, someone knows what can cause it ? Thx in advance. ( sorry about english...... )
  10. hmm, no , my bad, but debugscript 3 gives errors ?
  11. yea sorry, i forgoted to tell that i got my own cords
  12. ahh, haven't read 1.1 gui elements yet
  13. are u admin , or is the resource in admin group ? Does the debugscript give some errors ?
  14. CowTurbo

    Skins

    can be MTA bug, or in both servers are same skins.
  15. I dont know this . but, i think that is maked with edit and gridlist or something. So u have to make it by own
  16. addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) repeat until spawnPlayer ( player, 2412+math.random(1,1), -1413+math.random(1,1),24.4, 90, math.random(9,288) ) fadeCamera(player, true) setCameraTarget(player, player) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() local skin = getElementModel ( source ) setTimer(spawn, 1800, 1, source) setTimer(setElementModel, 1800, 1, source, skin) end ) Replace it with your .lua file inside "play" Should work
  17. which gamemode are u using ? Play ? then use edit it. U will need getElementModel setElementModel
  18. you have to make houses , lol
  19. u have to open ports, even , some networks cant accept to send server to list...
  20. hasObjectPermissionTo isObjectInACLGroup Press one of them and use that for checking is player admin or not. good luck ahh, the resource is named 'driveby'
×
×
  • Create New...