Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new Text:GauthamRandom;
- forward RandomMessage();
- public OnFilterScriptInit()
- {
- SetTimer("RandomMessage",3000,1);
- GauthamRandom = TextDrawCreate(3.000000, 433.000000, " ");
- TextDrawBackgroundColor(GauthamRandom, -1);
- TextDrawFont(GauthamRandom, 1);
- TextDrawLetterSize(GauthamRandom, 0.519999, 1.300000);
- TextDrawColor(GauthamRandom, 65535);
- TextDrawSetOutline(GauthamRandom, 1);
- TextDrawSetProportional(GauthamRandom, 1);
- TextDrawUseBox(GauthamRandom, 1);
- TextDrawBoxColor(GauthamRandom, 255);
- TextDrawTextSize(GauthamRandom, 637.000000, 0.000000);
- return 1;
- }
- new RandomMessages[][] =
- {
- "Welcome To My Server",
- "Visit 0.3c = 80.81.247.22:8271",
- "Dont Be Noob To Break Rules",
- "You Live Without Honour You Fall without Honour"
- };
- public RandomMessage()
- {
- TextDrawSetString(GauthamRandom, RandomMessages[random(sizeof(RandomMessages))]);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid,GauthamRandom);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement