BlaZing King
New Member
- Joined
- May 7, 2009
- Messages
- 8
- Reaction score
- 0
first in go in actions create a lua file vip switch.lua
copy this
then in actions actions.xml
copy this
it worked for me. Bye
Remember Its My First script
copy this
Code:
----- By Blazing King ---
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 1945 or item.itemid == 1946 then
if (item.uid==1005 or item.uid==1005) then
if (getPlayerGroupId(cid)>=1) then
setPlayerStorageValue(cid, 11551, 1)
doPlayerSendTextMessage(cid, 21, "Your Now A Vip User")
elseif (getPlayerGroupId(cid)<1) then
end
end
end
return TRUE
end
then in actions actions.xml
copy this
Code:
<action uniqueid="1005" script="vip switch.lua" />
it worked for me. Bye
Remember Its My First script

Last edited: