Martex

Untitled

Jul 29th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. CMD:loadevent(playerid,params[])
  2. {
  3. if(pInfo[playerid][pLevel] >= 6)
  4. {
  5. new string[134],
  6. option[128],
  7. irc[132];
  8. sscanf(params, "s", option); return SendClientMessage(playerid,0xFF0000F,"USAGE: loadevent [EventName]");
  9. if(strcmp(option, "crydm", true) == 0)
  10. {
  11. format(string,sizeof(string),"Admin %s (ID: %d) Has Loaded The Event CryDM",GetName(playerid),playerid);
  12. SendClientMessageToAll(0xEBFF00FF,string);
  13. format(irc, sizeof(irc), "02 03*** 6,11 Admin %s (ID: %d) Has Loaded The Event CryDM.", GetName(playerid),playerid);
  14. IRC_GroupSay(groupID, IRC_CHANNEL, irc);
  15. TDEditor_TD[0] = TextDrawCreate(408.399963, 0.346647, "TYPE_/EVENT_TO_JOIN_THE_CRYDM_~n~STARTING_IN_60_SECONDS");
  16. TextDrawLetterSize(TDEditor_TD[0], 0.392800, 1.154399);
  17. TextDrawTextSize(TDEditor_TD[0], 637.000000, 0.000000);
  18. TextDrawAlignment(TDEditor_TD[0], 1);
  19. TextDrawColor(TDEditor_TD[0], -1);
  20. TextDrawUseBox(TDEditor_TD[0], 1);
  21. TextDrawBoxColor(TDEditor_TD[0], 40191);
  22. TextDrawSetShadow(TDEditor_TD[0], 0);
  23. TextDrawSetOutline(TDEditor_TD[0], 1);
  24. TextDrawBackgroundColor(TDEditor_TD[0], 255);
  25. TextDrawFont(TDEditor_TD[0], 1);
  26. TextDrawSetProportional(TDEditor_TD[0], 1);
  27. TextDrawSetShadow(TDEditor_TD[0], 0);
  28. EventCountDown = true;
  29. eventstarted = true;
  30. event_type = CryDM;
  31. EventStartTimer = SetTimer("textdraw", 1000, true);
  32. return 1;
  33. }
  34. return 1;
  35. }
  36. else return ShowMessage(playerid,red,1);
  37. }
Advertisement
Add Comment
Please, Sign In to add comment