Jump to content

golanu21

Members
  • Posts

    650
  • Joined

  • Last visited

Everything posted by golanu21

  1. golanu21

    music

    ok , thanx man
  2. golanu21

    music

    how i add music when i hit a createColRectangle ?
  3. addCommandHandler("money", function (money) local accname = getAccountName(source) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Super.Admin" ) ) then elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Big.Admin" ) ) then elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then elseif money then money = table.concat({...}, " ") givePlayerMoney(root, money) else outputChatBox("[syntax]: /money [Ammount]", source, 255, 255, 0) end end end end end )
  4. i try it like that chat_rangee=100 function isPlayerInRangeOfPoint(player,xx,yy,zz,rangee) local pxx,pyy,pzz=getElementPosition(player) return ((xx-pxx)^2+(yy-pyy)^2+(zz-pzz)^2)^0.5<=rangee end function onChat(player,_,...) local pxx,pyy,pzz=getElementPosition(player) local msgg = table.concat({...}, " ") local nickk=getPlayerName(player) for _,c in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(c,pxx,pyy,pzz,chat_rangee) then outputChatBox( "#00ffff *"..nickk.." "..msgg,c,r,g,b,true) end end end addCommandHandler("me",onChat) addEventHandler ( "onPlayerChat", root, function ( message ) if message == me then cancelEvent ( ) end end )
  5. but when i use cancelEvent for command /me, i can't create other function with /me
  6. setPedControlState createColRectangle "onColShapeHit" startResource triggerServerEvent triggerClientEvent guiCreateWindow -- and more with GUI --ETC--
  7. And GUI or dx Functions for whatever action. YEP
  8. wait, you want to your npc, to have a gui ??, if you click on the NPC to appear a GUI ???
  9. what you want? i don't understand, to add gamemode to npc ??, you can't setPedControlState
  10. setPedControlState createColRectangle "onColShapeHit"
  11. how i stop the /me command ???
  12. man please, you know how to make it in local ?
  13. golanu21

    /me command

    how i make the /me command to be on local ??. radius = 100
  14. https://forum.multitheftauto.com/viewtopic.php?f=108&t=33905
  15. addEventHandler ( "onClientResourceStart", resourceRoot, function () for i=4113, 10000 do modelName = engineGetModelNameFromID ( i ) if string.find ( modelName, "LOD" ) then removeWorldModel(id, 1000, 0, 0, 0) end end end ) like this ???
  16. exist a command to remove LOD model ?
  17. how i can remove a buldin , when i try to do build look it this and i can enter in him like this
  18. ok man, thanx for help, seriosly
  19. with me don't work, i quit, thanx for help
  20. "HazeMaze" version="0.1" type="script" name="RPG" description="RPG">
×
×
  • Create New...