 |
|
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
|

03-31-2014
, 09:16
Re: [SOLVED] func_escapezone
|
#9
|
Quote:
Originally Posted by minato
PHP Code:
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_touch("*", "player", "touchFunc") }
public touchFunc(touched,toucher) { new class[64]; pev(touched, pev_classname, class, charsmax(class)); if(is_user_alive(toucher) ) && g_vip[toucher]). { if(equal(class, "func_escapezone") || equal(class,"func_vip_safetyzone")) { new players[32], inum, tempid get_players(players,inum,"aeh","TERRORIST") for(new i = 0;i<inum;i++) { tempid = players[i] user_kill(tempid,1); } } } return PLUGIN_CONTINUE; }
|
PHP Code:
#include <amxmodx> #include <engine>
public plugin_init() { register_plugin("Test", "", "Someone"); register_touch("func_escapezone", "player", "touchFunc");
register_touch("func_vip_safetyzone", "player", "touchFunc"); }
public touchFunc(touched,toucher) { if(is_user_alive(toucher)) && g_vip[toucher]) { new players[32], inum, tempid; get_players(players,inum,"ae","TERRORIST"); for(new i = 0;i<inum;i++) { tempid = players[i]; user_kill(tempid,1); } }
return PLUGIN_CONTINUE; }
__________________
|
|
|
|