- Joined
- Nov 1, 2012
- Messages
- 7
- Reaction score
- 0
i'm trying to edit some item that when use it will give a zen instead of coins or salary like this.
I've tried to change from "givepoint" to another like gold, goldpoint, cash, zen... but it doesn't work at all. When i try to use item after change it nothing happened at all (The item didn't gone like i can't use it).
Have any1 tried like me ?? Is it possible to do it? Thanks.
*Sorry for my English.
Code:
function OnUseItem(){
//ษพณฯ๛บฤฮ๏ฦท
$result = SubPlayerInfo( -1, "item", 43266 , 1 )
if $result == 0
AddPlayerInfo( -1, "givepoint", 500 )
endif
}
Have any1 tried like me ?? Is it possible to do it? Thanks.
*Sorry for my English.