Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:loadevent(playerid,params[])
- {
- if(pInfo[playerid][pLevel] >= 6)
- {
- new string[134],
- option[128],
- irc[132];
- sscanf(params, "s", option); return SendClientMessage(playerid,0xFF0000F,"USAGE: loadevent [EventName]");
- if(strcmp(option, "crydm", true) == 0)
- {
- format(string,sizeof(string),"Admin %s (ID: %d) Has Loaded The Event CryDM",GetName(playerid),playerid);
- SendClientMessageToAll(0xEBFF00FF,string);
- format(irc, sizeof(irc), "02 03*** 6,11 Admin %s (ID: %d) Has Loaded The Event CryDM.", GetName(playerid),playerid);
- IRC_GroupSay(groupID, IRC_CHANNEL, irc);
- TDEditor_TD[0] = TextDrawCreate(408.399963, 0.346647, "TYPE_/EVENT_TO_JOIN_THE_CRYDM_~n~STARTING_IN_60_SECONDS");
- TextDrawLetterSize(TDEditor_TD[0], 0.392800, 1.154399);
- TextDrawTextSize(TDEditor_TD[0], 637.000000, 0.000000);
- TextDrawAlignment(TDEditor_TD[0], 1);
- TextDrawColor(TDEditor_TD[0], -1);
- TextDrawUseBox(TDEditor_TD[0], 1);
- TextDrawBoxColor(TDEditor_TD[0], 40191);
- TextDrawSetShadow(TDEditor_TD[0], 0);
- TextDrawSetOutline(TDEditor_TD[0], 1);
- TextDrawBackgroundColor(TDEditor_TD[0], 255);
- TextDrawFont(TDEditor_TD[0], 1);
- TextDrawSetProportional(TDEditor_TD[0], 1);
- TextDrawSetShadow(TDEditor_TD[0], 0);
- EventCountDown = true;
- eventstarted = true;
- event_type = CryDM;
- EventStartTimer = SetTimer("textdraw", 1000, true);
- return 1;
- }
- return 1;
- }
- else return ShowMessage(playerid,red,1);
- }
Advertisement
Add Comment
Please, Sign In to add comment