Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Created by BlueQuiq | Moshe ohana - for Beginners
- */
- #include <a_samp>
- #include <DOF2>
- #include <BqColors>
- #define DashBoardTime 5 // How often DashBoard appears [Minute]
- #define AutoMessageTime 2 // How often AutoMessage appears [Minute]
- forward TimerDashBoard();
- forward TimerAutoMessage();
- public OnGameModeInit()
- {
- SetTimer("TimerBashBoard",1000*DashBoardTime,1);
- SetTimer("TimerAutoMessage",1000*AutoMessageTime,1);
- return 1;
- }
- public TimerAutoMessage()
- {
- SendClientMessageToAll(COLOR_YELLOW,"[DashBoard]");
- SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
- SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
- SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
- SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
- SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
- SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
- SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
- SendClientMessageToAll(COLOR_YELLOW,"[DashBoard]");
- return 1;
- }
- public TimerDashBoard()
- {
- switch(RandomNum(1,10))
- {
- case 1:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
- case 2:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
- case 3:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
- case 4:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
- case 5:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
- case 6:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
- case 7:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
- case 8:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
- case 9:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
- case 10:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
- }
- return 1;
- }
- stock RandomNum(minnum,maxnum) return random(maxnum - minnum) + minnum;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement