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 9z6ryrgznm04 dodana przez speedkill, 03.06.2012 12:08
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. 55. 56. 57. 58. 59. 60.
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <fun>
#include <fakemeta>
#include <fakemeta_util>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Administrator"
new bool:g_Have[33]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_Touch,"Touch")
register_logevent("new_round", 2, "1=Round_Start")
}
public client_connect(id)
g_Have[id] = false
public new_round()
{
for(new id=1;id<33;id++)
{
if(is_user_alive(id))
{
g_Have[id] = true
set_user_noclip(id,1)
set_task(10.0,"Np_off",id)
}
}
}
public Np_off(id)
{
g_Have[id] = false
set_user_noclip(id,0)
}
public Touch(touched,toucher)
{
new class[2][33]
pev(touched, pev_classname,class[0],32)
pev(toucher, pev_classname,class[1],32)
if(equali(class[0],"player") && equali(class[1],"player"))
{
if(g_Have[toucher])
{
push_off(toucher)
}
}
}
public push_off(id)
{
new Float: velocity[3], Float: DW;
pev(id, pev_velocity, velocity);
DW = vector_length(velocity) + 0.0001;
velocity[0] = (velocity[0] / DW) * (-500.0);
velocity[1] = (velocity[1] / DW) * (-500.0);
if(velocity[2] < 0) velocity[2] = velocity[2] * (-1.0) + 15.0;
set_pev(id, pev_velocity, velocity);
}
Dodanych wklejek: 15354
Powered By (Pav32) Pastebin © 2011


Dodatki SourceMod


