View Single Post
  #4  
Old 03-10-2002, 10:46 PM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
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
you could use:

timeout=.05;
setstring client.money,#v(playerrupees);
Reply With Quote