Advertisement
Guest User

Text

a guest
Nov 19th, 2011
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #include <a_samp>
  2. new Text:GauthamRandom;
  3. forward RandomMessage();
  4. public OnFilterScriptInit()
  5. {
  6. SetTimer("RandomMessage",3000,1);
  7. GauthamRandom = TextDrawCreate(3.000000, 433.000000, " ");
  8. TextDrawBackgroundColor(GauthamRandom, -1);
  9. TextDrawFont(GauthamRandom, 1);
  10. TextDrawLetterSize(GauthamRandom, 0.519999, 1.300000);
  11. TextDrawColor(GauthamRandom, 65535);
  12. TextDrawSetOutline(GauthamRandom, 1);
  13. TextDrawSetProportional(GauthamRandom, 1);
  14. TextDrawUseBox(GauthamRandom, 1);
  15. TextDrawBoxColor(GauthamRandom, 255);
  16. TextDrawTextSize(GauthamRandom, 637.000000, 0.000000);
  17. return 1;
  18.  
  19. }
  20. new RandomMessages[][] =
  21. {
  22. "Welcome To My Server",
  23. "Visit 0.3c = 80.81.247.22:8271",
  24. "Dont Be Noob To Break Rules",
  25. "You Live Without Honour You Fall without Honour"
  26. };
  27. public RandomMessage()
  28. {
  29. TextDrawSetString(GauthamRandom, RandomMessages[random(sizeof(RandomMessages))]);
  30. return 1;
  31. }
  32. public OnPlayerSpawn(playerid)
  33. {
  34. TextDrawShowForPlayer(playerid,GauthamRandom);
  35. return 1;
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement