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
Wklejka 57x02l752b dodana przez Gość, 17.05.2012 15:54
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.
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fakemeta> #include <nvault> #define PLUGIN "bio_strzykawka" #define AUTHOR "karer" #define VERSION "1.0" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("DeathMsg", "DeathMsg", "a") } public DeathMsg(){ new name[35] new vaultkey[64],vaultdata[64] new vaultkey1[64],vaultdata1[64] new iKiller = read_data(1) new iVictim = read_data(2) new nazwakilla = get_user_name(iKiller,name,34) if(is_user_alive(iKiller) && get_user_team(iKiller) != get_user_team(iVictim)){ set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0) show_hudmessage(iKiller, "Otrzymales 1 strzykawke !") new g_vault = nvault_open("strzykawki.txt") new pktnow = nvault_get(g_vault,vaultkey1,vaultdata1,255) format(vaultkey,63,"%s",nazwakilla) format(vaultdata,63,"%d",pktnow+1) nvault_set(g_vault,vaultkey,vaultdata) return PLUGIN_CONTINUE } }
Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011