Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new Text:BotMSG;
- new Commandbot[][] =
- {
- {"/command"},
- {"/command"},
- {"/command"},
- {"/command"}
- };
- public OnFilterScriptInit()
- {
- SetTimer("msg", 20000, 1); //20 seconds
- BotMSG = TextDrawCreate(43.000000, 324.000000, "__");
- TextDrawBackgroundColor(BotMSG, 96);
- TextDrawFont(BotMSG, 1);
- TextDrawLetterSize(BotMSG, 0.350000, 0.899999);
- TextDrawColor(BotMSG, 100271615);
- TextDrawSetOutline(BotMSG, 1);
- TextDrawSetProportional(BotMSG, 1);
- TextDrawSetSelectable(BotMSG, 0);
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawDestroy(Text:BotMSG); //Destroy TD
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid, Text:BotMSG); //Show TD
- return 1;
- }
- forward msg();
- public msg()
- {
- TextDrawSetString(Text:BotMSG, Commandbot[random(sizeof(Commandbot))]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment