State that the shop is for a certain player.
Change the 1 to whatever your donator number is.Code:if (c.playerRights == 1){
|
i need help i want it so that this shop only opens to donators how do i do that?
my charcter file thing is c.isDonator and hear is the shop code i have tryed tuts but they kept opening to normal players
case 518:
c.getShops().openShop(78);
c.sendMessage("You currently have <col=255>" + c.pkPoints + "</col> PKP.");
break;
that didnt help please give me a proper code
case 518:
if (c.isDonator > 4){
c.getShops().openShop(78);
c.sendMessage("You currently have <col=255>" + c.pkPoints + "</col> PKP.");
break;
is this correct?
this is my code now but this still opens up for normal players why...
case 518:
c.isDonator = 1;
c.getShops().openShop(78);
c.sendMessage("You currently have <col=255>" + c.pkPoints + "</col> PKP.");
break;
This is the code i have for my Donator Shop
Than if you are not staff or donator you can not open it. Replace the case ### and replace it with your number also, the openShop(##) and make that your shop number that you edit in shops.cfg need any more help just askCode:case ###: if (c.isDonator == 1 || c.playerRights == 1 || c.playerRights == 2 || c.playerRights == 3) { c.getShops().openShop(68); c.sendMessage("DONT SELL THIS TO NORMAL PLAYERS!!"); } else { c.sendMessage("Only donators/staff can view this shop!"); }
Just use the same code as u have in the beginning but above c.openshop put c.playerRights >= 1
Then under c.pkpoints put else if{
c.sendMessage you need to be a donator to view this shop..
Just edit it to work but that's the format. Ur an idiot if u can't do what I said properly and u can't expect to be spoonfed all the time
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |