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

[VIP Broadcast Script] TFS 0.2.5 *MS*

Martiimeus

●тнυg●ℓιƒє● ρα¢ 4 єνєя
Joined
Feb 3, 2009
Messages
500
Reaction score
1
Location
gєямαηу
Hello Guys,

I want to have a script like:

When a player bought VIP it gives an auto. Broadcast like: Congratulations [PlayerName] ! Now you are able to go trough the VIP door and to use the new VIP features!


But it should be visible for all people.. not him its like "/b Hi"
 
Lua:
local config = 
{
	item = 8978, --Make this the item id of your scroll
	level = 1 -- Make this the level required to use it
}

function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
   broadcastMessage(getCreatureName(cid) .. " just purchased VIP. Welcome him!",MESSAGE_STATUS_WARNING)
		setPlayerStorageValue(cid,1595,1)
		doRemoveItem(cid, item.uid, 1)
	else
		doPlayerSendCancel(cid, "Sorry, your level is to high to use this scroll.")
	end
	return 1
end
 
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)

	if getPlayerStorageValue(cid,11551) < 1 then
		if getPlayerLevel(cid) > 1 then
			getPlayerStorageValue(cid, 11551)
			doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED) 
			doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for 30 days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
			setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 30))
			doRemoveItem(item.uid, 1)
		else
			doPlayerSendCancel(cid,"You need to be at least level 2 to use this.")
			doRemoveItem(item.uid, 1)
		end
	else
		doPlayerSendCancel(cid,"You are already a donator.")
	end	
return TRUE
end


would you edit my script pls :D?

I want that all player can see a broadcast lol
 
Back
Top