Guest User

wrong v2

a guest
Feb 10th, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. #include < a_samp >
  2.  
  3. enum zaidejoInformacija
  4. {
  5. Ispejimai
  6. }
  7.  
  8. new pData[ MAX_PLAYERS ] [ zaidejoInformacija ];
  9.  
  10. public OnGameModeInit( )
  11. {
  12. SetTimer("TikrinameIspejimus", 2000, true );
  13. SetTimer("TikrinameGivybes", 1000, true );
  14. return 1;
  15.  
  16. }
  17.  
  18. forward TikrinameIspejimus( );
  19. forward TikrinameGivybes( );
  20.  
  21. public TikrinameGivybes( )
  22. {
  23. for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
  24. {
  25. new Float:health;
  26. GetPlayerHealth(playerid,health);
  27. if( health == 100 )
  28. {
  29. SendClientMessage( playerid, -1, "{FFFFFF}[ {FFAEAE}SERVERIS {FFFFFF}] : Buvote pastebėtas naudojant givibių pildymo programas");
  30. SetPlayerHealth( playerid, 99 );
  31. DuodamIspejima( playerid );
  32.  
  33. }
  34. }
  35. }
  36.  
  37. public TikrinameIspejimus( )
  38. {
  39. for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
  40. {
  41. if( IsPlayerConnected( playerid ) )
  42. {
  43. if( pData[ playerid ] [ Ispejimai ] == 5 )
  44. {
  45. SendClientMessage( playerid, -1, "{FFFFFF}[ {FFAEAE}SERVERIS {FFFFFF}] : Jūs surinkote {FF0000}5 - is {FFFFFF}įspėjimus.");
  46. SendClientMessage( playerid, -1, "{FFFFFF}[ {FFAEAE}SERVERIS {FFFFFF}] : Už surinktus įspėjimus jūs esate užblokuojamas.");
  47. Ban( playerid );
  48. }
  49. }
  50. }
  51. }
  52.  
  53.  
  54. stock DuodamIspejima( playerid )
  55. {
  56. pData[ playerid ] [ Ispejimai ] += 1;
  57. ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{FFA190}WRONG {FFFFFF}Įspėjimas","{FFFFFF}Jūs katik gavote {FF0000}1 - ą {FFFFFF}įspėjimą.\n\
  58. Įspėjimas buvo duotas už neleistinų programų naudojimą.","Gerai","");
  59. }
Advertisement
Add Comment
Please, Sign In to add comment