hlmod.hu
https://hlmod.hu/

Csak aki eldobta kivéve C4
https://hlmod.hu/viewtopic.php?f=29&t=9722
Oldal: 1 / 1

Szerző:  Gatshow [ 2013.07.26. 19:02 ]
Hozzászólás témája:  Csak aki eldobta kivéve C4

Hali!

van egy plugin amit nagyon köszönök [profil]Nandee[/profil]-nak.
az a lényege hogy ha eldobtad a fegyvert csak te tudod fölvenni.
de arra nem gondoltam hogy a c4-et fel kellene tudni venni majd :lol:
Arra kérek valakit hogy csinálja meg úgy hogy a c4 kivétel legyen!

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <engine>
  3.  
  4. public plugin_init()
  5. {
  6. register_plugin("Csak sajat fegyo","1.0","Nandee")
  7. register_touch("weaponbox","player","fw_touch")
  8. register_touch("weapon_shield","player","fw_touch")
  9. }
  10.  
  11. public fw_touch(ent,id)
  12. {
  13. if(entity_get_edict(ent,EV_ENT_owner)!=id)
  14. return PLUGIN_HANDLED
  15. return PLUGIN_CONTINUE
  16. }


Előre is köszi!

Szerző:  Nandee [ 2013.07.27. 11:12 ]
Hozzászólás témája:  Re: Csak aki eldobta kivéve C4

Gatshow írta:
Hali!

van egy plugin amit nagyon köszönök [profil]Nandee[/profil]-nak.
az a lényege hogy ha eldobtad a fegyvert csak te tudod fölvenni.
de arra nem gondoltam hogy a c4-et fel kellene tudni venni majd :lol:
Arra kérek valakit hogy csinálja meg úgy hogy a c4 kivétel legyen!

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <engine>
  3.  
  4. public plugin_init()
  5. {
  6. register_plugin("Csak sajat fegyo","1.0","Nandee")
  7. register_touch("weaponbox","player","fw_touch")
  8. register_touch("weapon_shield","player","fw_touch")
  9. }
  10.  
  11. public fw_touch(ent,id)
  12. {
  13. if(entity_get_edict(ent,EV_ENT_owner)!=id)
  14. return PLUGIN_HANDLED
  15. return PLUGIN_CONTINUE
  16. }


Előre is köszi!

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <engine>
  3.  
  4. public plugin_init()
  5. {
  6. register_plugin("Csak sajat fegyo","1.0","Nandee")
  7. register_touch("weaponbox","player","fw_touch")
  8. register_touch("weapon_shield","player","fw_touch")
  9. }
  10.  
  11. public fw_touch(ent,id)
  12. {
  13. new model[64]
  14. entity_get_string(ent,EV_SZ_model,model,63)
  15. if(entity_get_edict(ent,EV_ENT_owner)!=id&&containi(model,"c4")==-1)
  16. return PLUGIN_HANDLED
  17. return PLUGIN_CONTINUE
  18. }

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/