Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < a_samp >
- enum zaidejoInformacija
- {
- Ispejimai
- }
- new pData[ MAX_PLAYERS ] [ zaidejoInformacija ];
- public OnGameModeInit( )
- {
- SetTimer("TikrinameIspejimus", 2000, true );
- SetTimer("TikrinameGivybes", 1000, true );
- return 1;
- }
- forward TikrinameIspejimus( );
- forward TikrinameGivybes( );
- public TikrinameGivybes( )
- {
- for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
- {
- new Float:health;
- GetPlayerHealth(playerid,health);
- if( health == 100 )
- {
- SendClientMessage( playerid, -1, "{FFFFFF}[ {FFAEAE}SERVERIS {FFFFFF}] : Buvote pastebėtas naudojant givibių pildymo programas");
- SetPlayerHealth( playerid, 99 );
- DuodamIspejima( playerid );
- }
- }
- }
- public TikrinameIspejimus( )
- {
- for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
- {
- if( IsPlayerConnected( playerid ) )
- {
- if( pData[ playerid ] [ Ispejimai ] == 5 )
- {
- SendClientMessage( playerid, -1, "{FFFFFF}[ {FFAEAE}SERVERIS {FFFFFF}] : Jūs surinkote {FF0000}5 - is {FFFFFF}įspėjimus.");
- SendClientMessage( playerid, -1, "{FFFFFF}[ {FFAEAE}SERVERIS {FFFFFF}] : Už surinktus įspėjimus jūs esate užblokuojamas.");
- Ban( playerid );
- }
- }
- }
- }
- stock DuodamIspejima( playerid )
- {
- pData[ playerid ] [ Ispejimai ] += 1;
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{FFA190}WRONG {FFFFFF}Įspėjimas","{FFFFFF}Jūs katik gavote {FF0000}1 - ą {FFFFFF}įspėjimą.\n\
- Įspėjimas buvo duotas už neleistinų programų naudojimą.","Gerai","");
- }
Advertisement
Add Comment
Please, Sign In to add comment