![]() |
Please help me with this script.
if(playertouchsme)
{ money=strtofloat(#s(server.shopmoney)); if (money >=1) { setstring server.shopmoney,#v(money); playerrupees+=money; } } This is part of a script for a money bag that I am making. When money is made, it will be added to the server.shopmoney flag, but what I need to know is how to get it so that when the player touches the npc they will receive the amount of money in the server.shopmoney flag... (like if it's server.shopmoney=200 and they touch it they will get 200 rupees.) I got the giving money part figured out (I think), but I need someone to help me so that when the player touches it it will give the money, but at the same time it will set the server.shopmoney flag = to 0 (server.shopmoney=0) Please help, I can't figure it out :( |
Wow, no one can help me? I just need to know how to set the server.shopmoney flag to 0 once the playertouches that npc.
|
Quote:
setstring server.shopmoney,; |
lol what a aaaljkshfhha iiiii;oeeinjasd;fk
|
Sorry my other personality avercame me.
|
here ya go.
NPC Code: i think thats what you wanted...be more spacific....u confuse me...:p |
| All times are GMT +2. The time now is 04:59 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.