SHARE
TWEET

Shadow

a guest Mar 28th, 2009 4,192 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. =================================================
  3. Created By Shadow - Do not Remove these or any other credits.
  4. ================================================
  5. */
  6.  
  7. #include <a_samp>
  8.  
  9. new Text:ShadowsRandom;
  10. forward RandomMessage();
  11. public OnFilterScriptInit()
  12. {
  13.         print("\n--------------------------------------");
  14.         print("       RandomMessages by Shadow");
  15.         print("--------------------------------------\n");
  16.  
  17.         SetTimer("RandomMessage",3000,1);
  18.  
  19.         ShadowsRandom = TextDrawCreate(18.000000,428.000000,"We are apart of Emerald-Gaming!");
  20.         TextDrawAlignment(ShadowsRandom,0);
  21.         TextDrawBackgroundColor(ShadowsRandom,0x000000ff);
  22.         TextDrawFont(ShadowsRandom,2);
  23.         TextDrawLetterSize(ShadowsRandom,0.199999,0.899999);
  24.         TextDrawColor(ShadowsRandom,0xffffffff);
  25.         TextDrawSetOutline(ShadowsRandom,1);
  26.         TextDrawSetProportional(ShadowsRandom,1);
  27.         TextDrawSetShadow(ShadowsRandom,1);
  28.         return 1;
  29.  
  30. }
  31.  
  32. new RandomMessages[][] =
  33. {
  34.     "Have you seen a hacker? /report [ID] [Reason]",
  35.     "Only Noobs Rule break! Are you a noob?",
  36.     "Did you know we have forums? register today!",
  37.     "Did you know that we are apart of a gaming community? www.emerald-gaming.co.uk"
  38. };
  39.  
  40. public RandomMessage()
  41. {
  42.         TextDrawSetString(ShadowsRandom, RandomMessages[random(sizeof(RandomMessages))]);
  43.         return 1;
  44. }
  45.  
  46. public OnPlayerSpawn(playerid)
  47. {
  48.         TextDrawShowForPlayer(playerid, ShadowsRandom);
  49.         return 1;
  50. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top