• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Set storage, and add +1 value

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.
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.
 
Back
Top