Announce Command.
#1

Thanks, Fixed.
Reply
#2

At the top add this.
Код:
new ActiveEvent[MAX_PLAYERS];
Under OnPlayerConnect
Код:
ActiveEvent[playerid] =0;
Under OnPlayerDisconnect
Код:
ActiveEvent[playerid] =0;
Код:
CMD:announceevent(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
new eventname[128],prize;
if(sscanf(params,"s[128]i",eventname,prize))
{
SendClientMessage(playerid,-1,"/announceevent [event name] [prize amount]");
return 1;
}
else
{
if(ActiveEvent[playerid] ==0)
{
ActiveEvent[playerid] =1;
SendClientMessageToAll(COLOR_GREEN, "* The Adminstrirator Has Started an Event - /getjobevent to join.");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   You need to start the event first (/startevent) !");
}
}
else
{
 SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
}
}
return 1;
}
Reply
#3

I've done already that, I didn't just know how to make event name and prize, Thanks for help !! + Rep !
Reply
#4

Your welcome, BTW I didn't got any reputation points -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)