Stralioti

ANT - CTRL BY FS ( FÁBIO STRALIOTI)

Nov 27th, 2014
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.93 KB | None | 0 0
  1. /*
  2.  FILTERSCRIPT CRIADO POR : FÁBIO STRALIOTI
  3.  SCRIPTER FÓRUM GTA TORCIDAS !
  4.  
  5. ******** ************ *********  **** *************
  6. ******** ************ *********  **** *************
  7. ****     ****    **** ****   **  **** *****   *****
  8. ****     ****    **** ****   **  **** *****   *****
  9. ******** ************ *********  **** *****   *****
  10. ******** ************ *********  **** *****   *****
  11. ****     ****    **** ****   **  **** *****   *****
  12. ****     ****    **** *********  **** *************
  13. ****     ****    **** *********  **** *************
  14.  
  15. */
  16.  
  17. #include <a_samp>
  18. #include <zcmd>
  19.  
  20. enum PlayerAdmin
  21. {
  22.     Level
  23. }
  24. new pAdmin[MAX_PLAYERS][PlayerAdmin];
  25.  
  26. #define FILTERSCRIPT
  27. #if defined FILTERSCRIPT
  28.  
  29. public OnFilterScriptInit()
  30. {
  31.     print("\n--------------------------------------");
  32.     print("Filterscript criado por : Fábio Stralioti");
  33.     print("www.equipegtatorcidas.com");
  34.     print("--------------------------------------\n");
  35.     return 1;
  36. }
  37.  
  38. public OnPlayerConnect(playerid)
  39. {
  40.  SendClientMessage(playerid, -1,"Este servidor usa o ant-xiter em filterscript do Fábio Stralioti");
  41.  SendClientMessage(playerid, -1,"SCRIPTER'S GTA TORCIDAS");
  42.  return 1;
  43. }
  44.  
  45. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  46. {
  47.     if(newkeys == KEY_FIRE)
  48.     {
  49.         new string[128], name[MAX_PLAYER_NAME];
  50.         GetPlayerName(playerid, name, sizeof(name));
  51.         format(string, sizeof(string), "O player %s apertou CTRL verifique-o", name);
  52.         SendMessageToAdmins(-1,string);
  53.         TogglePlayerControllable(playerid,0);
  54.     }
  55.     return true;
  56. }
  57.  
  58. CMD:creditosfs(playerid)
  59. {
  60.  SendClientMessage(playerid, -1,"Filterscript feito por : Fábio Stralioti");
  61.  return 1;
  62. }
  63.  
  64. stock SendMessageToAdmins(color,const string[])
  65. {
  66.     for(new i = 0; i <= MAX_PLAYERS; i++)
  67.     {
  68.         if(IsPlayerConnected(i) == 1)
  69.         {
  70.             if(pAdmin[i][Level] >= 1)
  71.             {
  72.                 SendClientMessage(i, color, string);
  73.             }
  74.         }
  75.     }
  76.  
  77.     return 1;
  78. }
  79.  
  80. #else
  81. #endif
Advertisement
Add Comment
Please, Sign In to add comment