cmd and admin script
#1

hey guys so I have this moneybag system command :

PHP код:
CMD:moneybag(playerid,params[])
{
    
//I dont know your admin script so Edit this to allow your admin(s) to use the command
    //if(PlayerInfo[playerid][Admin] >= 1)
    
{
        if(
iseventstarted == true)SendClientMessage(playerid,0xff0000ff,"The MoneyBag Event Has Already Started");
        else{
            
DestroyDynamicPickup(MoneyPickup); //used to remove last pickup used
            
new Rand random(sizeof(MBagLocations));
            
MBagLocations[Rand][X];
            
MBagLocations[Rand][Y];
            
MBagLocations[Rand][Z];
            
MoneyBagPay MBagLocations[Rand][Pay];
            
MoneyPickup CreateDynamicPickup(15502,x,y,z, -1, -1, -11000.0);
            
SendClientMessageToAll(0xffccffaa,"The Money Bag Event Has Started.");
            
format(town,128"The Money Bag Is Nearest To %s",MBagLocations[Rand][area]);
            
format(location128"The Money Bag Is In %s",MBagLocations[Rand][loc]);
            
timer_mb_1=SetTimer("moneybag1"60*3000false);
            
iseventstarted true;
            }
//     }
    
return 1;

I'd like to ask you guys if you can give me the steps to associating my admin script to this command. I'll send you my admin script if you ask for it. And don't hesitate to tell me if you see errors in this cmd script
Reply
#2

What are you asking us to do? Make it so your admins can use the command? That command is awfully formatted, too.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)