Jump to content

-.Paradox.-

Members
  • Posts

    1,239
  • Joined

  • Last visited

Everything posted by -.Paradox.-

  1. Everytime i invite player to team and the player exist it write the player dont exist.
  2. -.Paradox.-

    Question

    Post rank.lua maybe there is a bug in.
  3. Nobody can fix?
  4. Hello, can somebody fix this script for me, when i do /invite playername it show on chatbox player dont exist but he exist, anyway here is the code. function getPlayerFromNamePart(name) if name then for i, player in ipairs(getElementsByType("player")) do if string.find(getPlayerName(player):lower(), tostring(name):lower(), 1, true) then return player end end end return false end function assignNewTeam ( source, _, playername, teamname ) if not playername then outputChatBox("Please enter in the player's name that you would like to remove from team!",source,255,0,0) return end local player = getPlayerFromName(playername) if not player then player = getPlayerFromNamePart(playername) end if not player or isElement(player) then outputChatBox("Sorry, player doesn't exist!",source,255,0,0) return end local theTeam = getTeamFromName ( teamname ) if not theTeam then theTeam = createTeam ( teamName ) end setPlayerTeam ( source, theTeam ) end addCommandHandler ( "invite", assignNewTeam ) function unassignTeam ( source, _, playername, teamname ) if not playername then outputChatBox("Please enter in the player's name that you would like to remove from team!",source,255,0,0) return end local player = getPlayerFromName(playername) if not player then player = getPlayerFromNamePart(playername) end if not player or isElement(player) then outputChatBox("Sorry, player doesn't exist!",source,255,0,0) return end local theTeam = getPlayerTeam ( player ) if not theTeam then outputChatBox("Player isn't on a team!",source,255,0,0) return end setPlayerTeam ( player, nil ) end addCommandHandler ( "dismiss", unassignTeam )
  5. Wont work, and don't worry i fixed it my self Thank you all Special thanks to @FatalTeror @iMr.3a[Z]eF
  6. still not working
  7. ...Then why csmit helped me on another one without posting the code?
  8. I deleted the file because its useless, anyway can you make it?
  9. It will crash the script and freeroam.
  10. What you mean?
  11. Ok i openned what part i have to remove?
  12. How? and in any file?
  13. Youre right i turn it off and it worked but i'm using freeroam.
  14. Can you explain me how?
  15. Working but keep repeating my message like player colos like example Steven: Bitch Steven: Cow It write like that.
  16. It work for few minutes then when i try again it wont blow i need to restart resource again.
  17. i tried local rgb part from wiki... local r, g, b = getPlayerNametagColor ( thePlayer )
  18. can you make it i did what u said but the script keep crashing...
  19. I'm at phone ._. when i come back i will post.
  20. Gonna try
  21. Okay thanks.
  22. I tried to make it yesterday but i crashed it, it write instead of player name nil and r,g,b
  23. Why cant use dxDraw image?
  24. Im connected just from phone, and i copied the code from the top of the topic.
×
×
  • Create New...