Hello guys, i have a slight problem. You see i just started scripting and the first script i made worked perfect. But now i wanna try something more advanced like a safe teleport. I made a example but i have no idea how to use the getplayerskull function.
I want to make it like if you got skull(red/white/black) you wont be able to use this script, on another thought can i use something like if i'm in combat i wont be able to use it instead of the getplayerskull thingy,
Here is the example i made
Thanks before hand, Fakkahe!
I want to make it like if you got skull(red/white/black) you wont be able to use this script, on another thought can i use something like if i'm in combat i wont be able to use it instead of the getplayerskull thingy,
Here is the example i made
PHP:
function onSay(cid, words, param)
if getPlayerSkull(cid) then
doPlayerSendCancel(cid,"You aint able to use the teleport function if you are skulled")
else
doPlayerRemoveMoney(cid,15000)
doTeleportThing(uid, 33000,31000,1)
doPlayerSendCancel(cid,"You just teleported yourself with safe teleport!")
else
doPlayerSendCancel(cid,"You need 15000 Gold Coins to use safe teleport!")
end
return TRUE
end
Thanks before hand, Fakkahe!