Czy istnieje plugin, który gdy gracz wpisze np. /grawitacja to może sobie wpisać wartość grawitacji np. 300 i po naciśnięciu enter ma tyle grawitacji ?
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
Plugin na grawitacje
Temat rozp.
Kolar`.
, 29.09.2011 12:52
3 odpowiedzi w tym temacie
#1
Napisano 29.09.2011 12:52
#2
Napisano 29.09.2011 15:13
#include <amxmodx> #include <amxmisc> #include <fun> // I'm coding this, for all those who are in need of it. // Enjoy, +karma plz // Made May 02, 2006, by Smokey485 #define HEAL_ACCESS ADMIN_SLAY new timeout[33]; public plugin_init() { register_plugin("amx_heal by Smokey485", "1.1", "Smokey") register_clcmd("/grawitacja", "heal_player") } public heal_player(id,level,cid) { if(!cmd_access(id,level,cid,3)) return PLUGIN_HANDLED; new amount[33] read_argv(1, amount, 32) // str_to_num this later if(get_cvar_num("amx_heal_timeout") == 1) { if(timeout[id] == 1) { console_print(id, "[HEAL] You cannot heal players so often, try again in a few seconds.") return PLUGIN_HANDLED; } } new float:numamount = str_to_num(amount) // Turn the string into a number set_user_gravity(id, numamount) timeout[id] = 1 set_task(2.0, "un_timeout", id) new authid[33] get_user_authid(id,authid, 32) return PLUGIN_HANDLED; } public un_timeout(id) { timeout[id] = 0; return PLUGIN_HANDLED; } // because this portion of this code might not even work, Im not bothering on making it easier to read, but its there //because it might work <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.png' class='bbc_emoticon' alt=':)' /> // usage of this piece of crap: item_heal <id> amount, example: amx_heal <id> 100 would heal the user of item 100 health.
Użytkownik HubertTM edytował ten post 29.09.2011 15:14
Piszę pluginy pod: AMX MOD X oraz SOURCE MOD!
Na zlecenie i bez zlecenia zresztą też!
#3
Napisano 07.10.2011 19:47
Wpisuje grawitacja i lipa.
#4
Napisano 07.10.2011 20:28
sprawdź
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() { register_plugin("amx_heal by Smokey485", "1.1", "Smokey") register_clcmd("say /grawitacja", "@vGrav") register_clcmd("grawitacja","vSet") } @vGrav(id) client_cmd(id,"messagemode grawitacja") public vSet(id){ new szGravity[64]; read_argv(2,szGravity,charsmax(szGravity)) set_user_gravity(id,float(str_to_num(szGravity))/800.0) }
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych