• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Talkaction removing storageid request.

Ezzam

New Member
Joined
Jan 16, 2008
Messages
213
Reaction score
2
A simple script removing a storage id.

ex.

!unvip " .. player name ..

setPlayerStorageValute(uid, storageid, newvalute)

uid = player
StorageID= 99987
NewValute= -1
 
enjoy..

Code:
function onSay(cid, words, param)
	if getPlayerGroupId(cid) > 5 then
		if param ~= nil then
			setPlayerStorageValue(getPlayerByName(param),99987,-1)
		else
			doPlayerSendCancel(cid,"Param can't be nil.")
		end
	else
		doPlayerSendCancel(cid,"You don't have the right access to use this.")
	end
	return FALSE
end

kind regards, Evil Hero
 
PHP:
function onSay(cid, words, param)
     if getPlayerGroupId(cid) >= 3 then
     if isPlayer(param)) == TRUE and param ~= nil then
          doPlayerSendTextMessage(cid, 24, "You removed VIP from player " .. param .. ".")
          setPlayerStorageValue(cid, 99987, -1)
     end
     end
end
 
Back
Top