Mam problem, otóż chcę ,że jeżeli wpiszemy daną komendę np. /granat to będąc zombie - dostaniemy ten granat ale nie do "łapy", lecz trzeba nacisnąć E żeby nim wyrzucić.
Zrobiłem tak:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <biohazard>
#define PLUGIN "Nowy Plugin"
#define VERSION "0.1"
#define AUTHOR "Asters"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("granat", "granat")
register_clcmd("+use", "pokaz")
}
public pokaz(id)
{
granat(id)
return PLUGIN_CONTINUE
}
public granat(id)
{
give_item(id, "weapon_hegrenade")
return PLUGIN_CONTINUE
}
Ale tutaj daje go do łapy.
drugi sposób:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <biohazard>
#define PLUGIN "Nowy Plugin"
#define VERSION "0.1"
#define AUTHOR "Mis"
new granats[33]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("granat", "granat")
register_clcmd("+use", "pokaz")
}
public pokaz(id)
{
granat(id)
}
public granat(id)
{
granats = "hegrenade"
}
I niby nie daje do łap ale rzucać nim nie można.. Proszę o pomoc.
Użytkownik Nenczoks edytował ten post 18.10.2010 10:35