Advertisement
Sokarbestfrag

Untitled

Feb 26th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <fakemeta>
  4.  
  5. new bool:is_user_fake[33]
  6. new fake_players[33]
  7.  
  8. new const name_of_bots[][] =
  9. {
  10. "WWW.BESTFRAG.RO # 1",
  11. "Visit/Registrer BESTFRAG"
  12. }
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin("boti", "1.0", "cyby")
  17.  
  18. set_task(10.0, "make_bot")
  19. }
  20.  
  21. public make_bot()
  22. {
  23. new i;
  24. for(i = 0; i < sizeof name_of_bots; i++)
  25. {
  26. if(fake_players[i] <= 3)
  27. {
  28. new FAKE_PLAYER = engfunc(EngFunc_CreateFakeClient,name_of_bots[i])
  29.  
  30. dllfunc(DLLFunc_ClientConnect,FAKE_PLAYER)
  31. dllfunc(DLLFunc_ClientPutInServer,FAKE_PLAYER)
  32. set_pev(FAKE_PLAYER,pev_team,3)
  33.  
  34. is_user_fake[FAKE_PLAYER] = true
  35. fake_players[FAKE_PLAYER] += 1
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement