decalfrequency 0 for vip/admins only
Posted: 2010 Dec 18 23:02
Sveiki ,gal galit pataisyt sita plugina kad veiktu nes dabar jis man kazko nieko nereguoja (neveikia)
error jokiu ner bet neveikia.
reikia padaryti kad acc butu T raide.
tas kas neturi t flag suskamba no.wav (reikia ji pridet.)
error jokiu ner bet neveikia.
reikia padaryti kad acc butu T raide.
tas kas neturi t flag suskamba no.wav (reikia ji pridet.)
Code: Select all
/* Copyright © 2009, ConnorMcLeod Admin Spray is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Admin Spray; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define FLAG_ADMIN_SPRAY ADMIN_LEVEL_A #include <amxmodx> #include <engine> #include <fakemeta> #define PLUGIN "Admin Spray" #define AUTHOR "ConnorMcLeod" #define VERSION "0.0.1" #define MAX_PLAYERS 32 #define m_flNextDecalTime 486 new g_bAdmin[MAX_PLAYERS+1] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_impulse(201, "Player_Spray") } public client_authorized(id) { g_bAdmin[id] = !!(get_user_flags(id) & FLAG_ADMIN_SPRAY) } public Player_Spray(id) { if( g_bAdmin[id] ) { set_pdata_float(id, m_flNextDecalTime, 0.0) } }