Jump to content

Norby127

Members
  • Posts

    4
  • Joined

  • Last visited

Norby127's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Norby127

    /me BUG

    No it's not working unfortenetly
  2. Norby127

    /me BUG

    Hello! Why the /me not working properly? I tried to solve but i can't :/. The problem is when the player type just /me the script doesn't react to that. And if i type after the /me many spaces the msg is sent. Here's the code: function sendMessage( message,messageType) if messageType == 1 then -- /me cancelEvent() sendMe(source,message) end end addEventHandler ( "onPlayerChat", root,sendMessage) function sendMe(source,...) local check = ... local msg = table.concat({...}, " ") if not check then outputChatBox("#77ba50Usage:#FFFFFF /me [text]",source,255,0,0,true) else local name = string.gsub(getPlayerName(source),"_"," ") pX,pY,pZ = getElementPosition(source) local zone = createColSphere(pX,pY,pZ,range) for _, thePlayer in ipairs(getElementsWithinColShape(zone,"player")) do outputChatBox(colorME.."*** "..name.." "..msg,thePlayer,255,0,0,true) end destroyElement(zone) end outputChatBox(string.len(msg),source) end
  3. Hi guys! I saw on many servers there was custom text on the right bottom of the screen. The default text is the MTA:SA version and I would like to ask that how can I make custom text there? Is there any server function for this?
  4. Hi guys. Because of something unknown error my script can't find the target player and I don't rly know why. I didn't get any error code. Could you help me please? The source code: function locatePlayer( source, command, target, ... ) local args={...} local countArgs = #args if (countArgs < 1) or countArgs > 1 then outputChatBox("Usage: /pos <name>", source) else local targetPlayer = getPlayerFromName(target) if (targetPlayer) then outputChatBox(target) else outputChatBox("Not found.") end end end addCommandHandler ("pos", locatePlayer)
×
×
  • Create New...