cmd and admin script - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: cmd and admin script (
/showthread.php?tid=586567)
cmd and admin script -
brandypol - 23.08.2015
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));
x = MBagLocations[Rand][X];
y = MBagLocations[Rand][Y];
z = MBagLocations[Rand][Z];
MoneyBagPay = MBagLocations[Rand][Pay];
MoneyPickup = CreateDynamicPickup(1550, 2,x,y,z, -1, -1, -1, 1000.0);
SendClientMessageToAll(0xffccffaa,"The Money Bag Event Has Started.");
format(town,128, "The Money Bag Is Nearest To %s",MBagLocations[Rand][area]);
format(location, 128, "The Money Bag Is In %s",MBagLocations[Rand][loc]);
timer_mb_1=SetTimer("moneybag1", 60*3000, false);
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
Re: cmd and admin script -
Luke_James - 23.08.2015
What are you asking us to do? Make it so your admins can use the command? That command is awfully formatted, too.