• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Player "/say"

Gut

Collapser Zulu Creator
Joined
Jun 14, 2007
Messages
581
Reaction score
28
Location
USA
This talkaction script makes a player say something you want...
Here is an example of how to use it:

/say "Bob,You are all hunted!
Bob: You are all hunted!

Here is the code...
Code:
function onSay(cid, words, param)
	if param ~= "" and getPlayerGroupId(cid) == 2 then
                name = string.sub(param,0,string.find(param, ",")-1)
		message = string.sub(param,string.find(param, ",")+1)
		doCreatureSay(getPlayerByName(name),message,1)
	end
	return FALSE
end

Enjoy...
 
Last edited:
It wasn't a talkaction, that's the thing. It was hardcoded in the sources, which will make the server run slower. Now that it's a talkaction it's more customizable and easier to manage. :)
 
It's a good way to start wars IMO =)
 
I don't use *tf*ns :< but yes that does the same thing pretty much but with more lines of code
 
Back
Top