isDonator > 0
how old are you, 5?
|
ok so i made some code that when clicked will open a tab where you get some info and teleport to donator zone... but my super donators and extreme donator cant get into this as there "isDonator" is 2 for super and 3 for extreme
this is code:
the isDonator == 1 how do i make it so it can apply to == 2 and == 3?Code:case 108003: if (c.isDonator == 1) { c.setSidebarInterface(4, 27620); } else { c.sendMessage("You must be an donator to view this tab!"); return; } break;
i hope i explained myself enough
thanks,
Dragonmaidon
isDonator > 0
how old are you, 5?
You could also use the or opperand which is pretty convenient if you only want certain levels of donators to enter that area
Code:case 108003: if (c.isDonator == 1 || c.isDonator == 2 || c.isDonator == 3) { c.setSidebarInterface(4, 27620); } else { c.sendMessage("You must be an donator to view this tab!"); return; } break;
instead of doing that other thing above you can simply add this
Code:case 108003: if (c.isDonator >= 1) { c.setSidebarInterface(4, 27620); } else { c.sendMessage("You must be an donator to view this tab!"); return; } break;
Last edited by Turbo X Repz; 01-11-2012 at 02:57 AM. Reason: Miss spelled... -.-
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |