Nightimarez
New Member
- Joined
- Jul 24, 2008
- Messages
- 287
- Reaction score
- 2
So I want to make a script that gives you a storage, and keeps adding + 1 to its' value, but I don't know the formula.
I imagine it would be something like this, but I'm messing up on the +1 part.
Also, I need help making a script that tells you the value of certain storage.
Note that neither of the scripts I made work, they're just examples and I need help. I need these scripts for a war server. So the value of the storage would represent the kills a player has.
I imagine it would be something like this, but I'm messing up on the +1 part.
PHP:
function onKill(cid, target, lastHit)
if isPlayer(target) then
setPlayerStorageValue(cid, 3694, +1)
end
Also, I need help making a script that tells you the value of certain storage.
PHP:
function onSay(cid, words, param, channel)
doCreatureSay(cid, getPlayerStorageValue(cid, 3694, count), MESSAGE_STATUS_CONSOLE_ORANGE)
return FALSE
end
Note that neither of the scripts I made work, they're just examples and I need help. I need these scripts for a war server. So the value of the storage would represent the kills a player has.