What's new

-LUA & XML !promotion skrypt help

Status
Not open for further replies.

radomek331

Advanced User
Joined
Jun 25, 2010
Messages
197
Reaction score
3
Pomoze ktos przerobic ten skrypt aby mozna bylo tylko raz kupic promotion ?
Reput++
function onSay(cid, words, param)

if doPlayerRemoveMoney(cid, 20000) == TRUE then
doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
doPlayerSendTextMessage(cid, 19,"Kupiles promotion!.")
doSendMagicEffect(getPlayerPosition(cid), 19)
else
doPlayerSendCancel(cid, "Nie masz 2 crystal coin.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end

end
 

Czopeq

Advanced User
Joined
Jun 29, 2015
Messages
191
Reaction score
6
Odp: !promotion skrypt help

[LUA]


function onSay(cid, words, param)

if doPlayerRemoveMoney(cid, 20000) == TRUE then
if getPlayerStorageValue(cid, 2222) ~= nil then
doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
setPlayerStorageValue(cid,2222,1)
doPlayerSendTextMessage(cid, 19,"Kupiles promotion!.")
doSendMagicEffect(getPlayerPosition(cid), 19)
else
doPlayerSendCancel(cid, "xxxx.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doPlayerSendCancel(cid, "Nie masz 2 crystal coin.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end


[/LUA]
//Pisane z telefonu.. to mo?e by? napisane co? nie tak. ;o
 
Status
Not open for further replies.
Top