Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. #include <a_samp>
  2. new dontshoot[][] =
  3. {
  4. "!ùìà úòæ ìéøåú òìéé",
  5. "!àì úéøä òìéé"
  6. };
  7. new Zuz[][] =
  8. {
  9. "!àì úú÷øá àìéé",
  10. "!úúøç÷ îîðé"
  11. };
  12. #if defined FILTERSCRIPT
  13.  
  14. public OnFilterScriptInit()
  15. {
  16. print("\n--------------------------------------");
  17. print("Yakov [F]ilter[S]cript Loaded");
  18. print("--------------------------------------\n");
  19. return 1;
  20. }
  21.  
  22. public OnFilterScriptExit()
  23. {
  24. print("Yakov [F]ilter[S]cript UnLoaded");
  25. return 1;
  26. }
  27.  
  28. #else
  29.  
  30. main()
  31. {
  32. print("\n----------------------------------");
  33. print(" Blank Gamemode by your name here");
  34. print("----------------------------------\n");
  35. }
  36.  
  37. #endif
  38.  
  39.  
  40. public OnPlayerConnect(playerid)
  41. {
  42. new PlayerName[24];
  43. GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  44. if(strcmp(PlayerName,"Yakov",true))
  45. {
  46. SendClientMessageToAll(0xaaaaff,"Yakov - äîìê ðëðñ ìùøú");
  47. }
  48. return 1;
  49. }
  50.  
  51. public OnPlayerDisconnect(playerid, reason)
  52. {
  53. new PlayerName[24];
  54. GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  55. if(strcmp(PlayerName,"Yakov",true))
  56. {
  57. SendClientMessageToAll(0xaaaaff,"Yakov - äîìê éöà ìùøú");
  58. }
  59. return 1;
  60. }
  61. forward OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost);
  62. public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
  63. {
  64. new PlayerName[24];
  65. GetPlayerName(Target, PlayerName, sizeof(PlayerName));
  66. if(strcmp(PlayerName,"Yakov",true))
  67. {
  68. new Float:x, Float:y, Float:z;
  69. CreateExplosion(x,y,z,10,10);
  70. new randomMsg = random(sizeof(dontshoot));
  71. SendClientMessage(Shooter,0xff0000ff, dontshoot[randomMsg]);
  72. }
  73. return 1;
  74. }
  75.  
  76. public OnPlayerUpdate(playerid)
  77. {
  78. new PlayerName[24];
  79. GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  80. if(strcmp(PlayerName,"Yakov",true))
  81. {
  82. for(new i; i<MAX_PLAYERS; i++)
  83. {
  84. if(IsPlayerNearPlayer(35, playerid, i) && i != playerid)
  85. {
  86. new Float:X,Float:Y,Float:Z;
  87. GetPlayerVelocity(i, X,Y,Z);
  88. SetPlayerVelocity(i,X+100,Y+100,Z+30);
  89. new randomMsg = random(sizeof(Zuz));
  90. SendClientMessage(i,0xff0000ff, Zuz[randomMsg]);
  91. }
  92. }
  93. }
  94. return 1;
  95. }
  96. stock IsPlayerNearPlayer(Float:radius, playerid, otherplayer)
  97. {
  98. new Float:X, Float:Y, Float:Z;
  99. GetPlayerPos(playerid, X, Y, Z);
  100. if(IsPlayerInRangeOfPoint(otherplayer, radius, X, Y, Z)) return true;
  101. return 0;
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement