Advertisement
Guest User

Purgotary System - By AlexzzPro

a guest
Apr 14th, 2011
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.03 KB | None | 0 0
  1. /*
  2. ||||||||||||||||||||||||||||||||||||||||||||
  3. ||Purgotary System By AlexzzPro           ||
  4. ||Taken from my Ultimate Deathmatch Script||
  5. ||Keep the credits to me please           ||
  6. ||Do not claim this as yours              ||
  7. ||||||||||||||||||||||||||||||||||||||||||||
  8. */
  9. #define FILTERSCRIPT
  10. #include <a_samp>
  11. #define COLOR_RED 0xE60000FF
  12. new Purgotary[MAX_PLAYERS];
  13. forward purgotary(playerid);
  14. new Text:Textdraw;
  15. #if defined FILTERSCRIPT
  16.  
  17. public OnFilterScriptInit()
  18. {
  19.     print("\n--------------------------------------");
  20.     print(" Purgotary System By AlexzzPro");
  21.     print("--------------------------------------\n");
  22.     Textdraw = TextDrawCreate( 1.000000,300.000000,"You are in Purgotary!!!" );
  23.     TextDrawAlignment( Textdraw, 0 );
  24.     TextDrawBackgroundColor( Textdraw, 0x000000ff );
  25.     TextDrawFont( Textdraw, 0 );
  26.     TextDrawLetterSize( Textdraw, 1.5,4.1 );
  27.     TextDrawColor( Textdraw, COLOR_RED );
  28.     TextDrawSetOutline( Textdraw, 1 );
  29.     TextDrawSetProportional( Textdraw, 1 );
  30.     TextDrawSetShadow( Textdraw, 1 );
  31.     return 1;
  32. }
  33.  
  34. public OnFilterScriptExit()
  35. {
  36.     TextDrawDestroy(Textdraw);
  37.     return 1;
  38. }
  39.  
  40. #else
  41.  
  42.  
  43. #endif
  44.  
  45. public OnPlayerConnect(playerid)
  46. {
  47.     Purgotary[playerid] = 0;
  48.     return 1;
  49. }
  50. public OnPlayerSpawn(playerid)
  51. {
  52.     if(Purgotary[playerid] == 1)
  53.     {
  54.         SetPlayerCameraPos(playerid, -833.5241,-1358.8575,86.9054);
  55.         SetPlayerCameraLookAt(playerid, -833.5241,-1358.8575,0);
  56.         SetPlayerDrunkLevel (playerid, 100000);
  57.         SetPlayerPos(playerid, 1047.5898,2921.8098,43.0475);
  58.         TextDrawShowForPlayer(playerid, Text:Textdraw);
  59.         SetTimerEx("purgotary", 30000, false, "i", playerid);
  60.         TogglePlayerControllable(playerid, 0);
  61.     }
  62.     return 1;
  63. }
  64. public purgotary(playerid)
  65. {
  66.     Purgotary[playerid] = 0;
  67.     SetPlayerDrunkLevel(playerid, 0);
  68.     SpawnPlayer(playerid);
  69.     SetCameraBehindPlayer(playerid);
  70.     TextDrawHideForPlayer(playerid, Textdraw);
  71.     TogglePlayerControllable(playerid, 1);
  72.     return 1;
  73. }
  74. public OnPlayerDeath(playerid, killerid, reason)
  75. {
  76.     Purgotary[playerid] = 1;
  77.     return 1;
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement