Jesper_Kladden
Donator
Take a look at this script I just made:
Talkactions.xml
The script is working like a charm..
But there's one problem:
The Changeoutfit doesn't work!! I can't understand why!!
Does someone here know the problem?
If you didn't understand.. Here it goes again:
*Change to Male works
*Change to Female works
*Change outfit when changing the sex isn't working.
The reason why I want it to change the outfit is that when it changes the sex it still has the old sex outfit left if you don't manualy change it.
PHP:
function onSay(cid, word)
if getPlayerPremiumDays(cid) > 5 then
if getPlayerSex(cid) == 0 then
doPlayerSetSex(cid, 1)
doPlayerRemovePremiumDays(cid, 5)
doPlayerSendTextMessage(cid, 27, "You've just changed yourself into a Man!")
doPlayerChangeOutfit(cid,
{
looktype=128,
lookbody=68,
lookfeet=76,
lookhead=78,
looklegs=39
})
else
doPlayerSetSex(cid, 0)
doPlayerRemovePremiumDays(cid, 5)
doPlayerSendTextMessage(cid, 27, "You've just changed yourself into a Woman!")
doPlayerChangeOutfit(cid,
{
looktype=136,
lookbody=68,
lookfeet=76,
lookhead=78,
looklegs=39
})
end
else
doPlayerSendTextMessage(cid, 27, "You don't have enough Premium Days to change your sex!")
end
end
Talkactions.xml
PHP:
<talkaction words="!sex" script="changesexJK.lua"/>
The script is working like a charm..
But there's one problem:
The Changeoutfit doesn't work!! I can't understand why!!
Does someone here know the problem?
If you didn't understand.. Here it goes again:
*Change to Male works
*Change to Female works
*Change outfit when changing the sex isn't working.
The reason why I want it to change the outfit is that when it changes the sex it still has the old sex outfit left if you don't manualy change it.