• 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!

Need help with a Broadcast game!

leeebux

Awsome
Joined
May 18, 2009
Messages
116
Reaction score
17
Location
Sweden
Hello all.

Could anyone help me making a awesome script that is broadcasting a text with random smiles. and if a player write this another text will apear and say something like this "Player1 was the fastest one!".

Rep++ to the one that help me!
 
Code:
local t = {
	[1] = {':P'}
	[2] = {':D'}
	[3] = {';('}
}
function onSay(cid,words,param)
local r,s = math.random(1,3),1000
	if words == t.r then
		if getGlobalStorageValue(s) < 1 then
			doCreatureSay(cid,'Fastest!',19)
			setGlobalStorageValue(s,1)
		else
			doCreatureSay(cid,'Too late!',19)
		end
	end
return true
end

You can try this.
 
Back
Top