Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54.
#include <amxmodx> #include <cstrike> #include <engine> #include <fun> #include <hamsandwich> new bool:g_Vip[33], gRound=0, weapon_id; public plugin_init(){ register_plugin("VIP Ultimate", "5.1.0.2", "benio101 & speedkill"); RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1); register_event("HLTV", "event_new_round", "a", "1=0", "2=0"); register_logevent("GameCommencing", 2, "1=Game_Commencing"); } public client_authorized(id){ if(get_user_flags(id) & 524288 == 524288){ client_authorized_vip(id); } } public client_authorized_vip(id){ g_Vip[id]=true; } public client_disconnect(id){ if(g_Vip[id]){ client_disconnect_vip(id); } } public client_disconnect_vip(id){ g_Vip[id]=false; } public SpawnedEventPre(id){ if(g_Vip[id]){ if(is_user_alive(id)){ SpawnedEventPreVip(id); } } } public event_new_round(){ ++gRound; } public GameCommencing(){ gRound=0; } public SpawnedEventPreVip(id){ if(gRound<=3 && gRound>=1){ if(get_user_team(id)%1){ give_item(id, "weapon_glock18"); give_item(id, "ammo_9mm"); weapon_id=find_ent_by_owner(-1, "weapon_glock18", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 20); cs_set_user_bpammo(id, CSW_GLOCK18, 120); } } }
Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011