![]() |
Rupees (STEFAN)
Im adding a donations box to my racetrack..
so people can donate cash if they want.. i was wondering how this is done because the npcserver might block this or something... is it just playerrupees or is it somehting more complicated that has to do with the npcserver |
Ummm.........
if (playerlaysitem){take greenrupee;take bluerupee;take redrupee; take goldrupee;} if (created){timeout=.05;} if (timeout){message #v(rupees) has been donated!;timeout=.05;} if (playerchats&&strequals(#g,race track owner)&&strequals(#c,take donations)){playerrupees=playerrupees+rupees;rupee s=0;timeout=.05;} |
or........
if (playerchats&&startswith(Donate,#c)){tokenize #c;} if (tokenscount==2){ if (playerrupees=>#t(1)){rupees+=#t(1);playerrupees-=#t(1);} something like these? |
messed up on teh bottom
try // NPC made by Josey Hunt if (playerchats&&startswith(Donate,#c)){tokenize #c;} if (tokenscount==2){i=strtofloat(#t(1)); if (playerrupees=>i){rupees+=i);playerrupees-=i; }} |
I'm really tired cause I've been playing Unreal Tournament fo days in a row, so don't gripe if neither works, *****!
Well back to more killing :D:D:D:D:D |
Minimum timeout with NPC server is 0.1
|
Quote:
|
| All times are GMT +2. The time now is 08:20 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.