
03-11-2002, 03:47 PM
|
|
Registered User
|
Join Date: Feb 2002
Location: UK
Posts: 324
|
|
Re: I need help with money system
Quote:
Originally posted by mhermher
Hi, can anyone help me with this?
I knwo there aint any commands like playerlaysgoldrupee or stuff,
btu i need it to work that if you lay an goldrupee client.string will reduce with 100 and same with toehr rupees
heres what i got so far
[CODE]// NPC made by GÄ$†£Ÿ -Testing-
if (playerenters) {
toweapons -moneysystem;
}
if (timeout) {
playerrupees=client.money;
}
timeout=0.05;
if (timeout) {
if (playerlaysgoldrupee&&client.money>99) {
client,money-=100;
}
if (playerlaysredrupee&&client.money>29) {
client,money-=30;
}
if (playerlaysgreenrupee&&client.money>0) {
client,money-=1;
}
if (playerlaysbluerupee&&client.money>4) {
client,money-=5;
}
}CODE]
ANd its not gonna use putNPC cuz its p2p and it will cause lag with gralat system, so is there a way to do it? that if you drop 1 gold rupee client.money will reduce with 100
Thanks
|
dont get what you are trying to achieve |
__________________
Beware of thy Inner self NPC Code:
_.,.__
((o\\o\))
.-. ` \\``
__( )___.o" ".,___
=== ~~~~~~~~
==
= Neo
|
|
|
|