Advertisement
RiccB

[L'M] Anti Invisible

Aug 21st, 2018
101
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stock TimerisAnti(playerid)
  2. {
  3. if(pState == PLAYER_STATE_SPECTATING && !ADMIN KINTAMASIS)
  4. {
  5. SendClientMessage(playerid, 0xd36e4aFF, "[kick] Jūs išmestas iš serverio už neleistinų programų naudojimą (AC #003).");
  6. SendClientMessage(playerid, WHITE, "Atsiprašome jeigu buvote išmestas per klaidą.");
  7. new logtext[105],ips[16],name[21];
  8. GetPlayerName(playerid,name,21), GetPlayerIP(playerid,ips,16);
  9. format(logtext, 105, "[KICK] Ismestas: %s(IP: %s) | Priezastis: Anti-Invisible |", name, ips);
  10. for(new i = GetPlayerPoolSize(); i > -1; i--)
  11. {
  12. if(IsPlayerConnected(i) && ADMIN KINTAMASIS ) SendClientMessage(i, 0x3098CFFF, logtext);
  13. }
  14. Kick(playerid);
  15. return 1;
  16. }
  17. }
  18.  
  19. /* Naudojamas globaltimeryje ( jei neturite, patartina susikurti )
  20.  
  21. for(new p = GetPlayerPoolSize(); p > -1; p--)
  22. {
  23. if(IsPlayerNPC(p) || !IsPlayerConnected(p)) continue;
  24. TimerisAnti(p);
  25. }
  26.  
  27. */
Advertisement
RAW Paste Data Copied
Advertisement