|
Veteran Member
Join Date: Jul 2014
Location: Serbia
|

09-17-2015
, 19:16
Re: HELP::..::edit script
|
#4
|
Hmmm
Try this..
UPDATED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!
PHP Code:
#include <amxmodx> #include <cstrike> #include <acg>
#define TASK_TGA1 29387 #define TASK_TGA2 42837
public plugin_init() { register_plugin("TGA Drawing Test", "0.2", "[email protected]") }
public plugin_precache() { precache_generic("gfx/tt.tga") precache_generic("gfx/ct.tga") }
public client_disconnect(id) { remove_task(id+TASK_TGA1) remove_task(id+TASK_TGA2) }
public client_putinserver(id) { if (acg_userstatus(id)) { set_task(3.0,"showtga1",id+TASK_TGA1) } }
public client_infochanged(id) { if(acg_userstatus(id)) { remove_task(id+TASK_TGA1) set_task(3.0,"showtga2",id+TASK_TGA2) } }
public showtga1(id) { id -= TASK_TGA1 //native acg_drawtga(id, const szTGA[], red, green, blue, alpha, Float:x, Float:y, center, effects, Float:fadeintime, Float:fadeouttime, Float:fxtime, Float:holdtime, bfullscreen, align, channel) if(cs_get_user_team(id) == CS_TEAM_T) { acg_drawtga(id, "gfx/tt.tga", 255, 255, 255, 200, 0.0, 0.0, 0, FX_FADE, 3.0, 0.0, 0.0, -1, 0, ALIGN_RIGHT, 2) } else if(cs_get_user_team(id) == CS_TEAM_CT) { acg_drawtga(id, "gfx/ct.tga", 255, 255, 255, 200, 0.0, 0.0, 0, FX_FADE, 3.0, 0.0, 0.0, -1, 0, ALIGN_RIGHT, 2) } return PLUGIN_HANDLED }
public showtga2(id) { id -= TASK_TGA2 //native acg_drawtga(id, const szTGA[], red, green, blue, alpha, Float:x, Float:y, center, effects, Float:fadeintime, Float:fadeouttime, Float:fxtime, Float:holdtime, bfullscreen, align, channel) if(cs_get_user_team(id) == CS_TEAM_T) { acg_drawtga(id, "gfx/tt.tga", 255, 255, 255, 200, 0.0, 0.0, 0, FX_FADE, 3.0, 0.0, 0.0, -1, 0, ALIGN_RIGHT, 2) } else if(cs_get_user_team(id) == CS_TEAM_CT) { acg_drawtga(id, "gfx/ct.tga", 255, 255, 255, 200, 0.0, 0.0, 0, FX_FADE, 3.0, 0.0, 0.0, -1, 0, ALIGN_RIGHT, 2) } return PLUGIN_HANDLED }
Not sure about it though
Last edited by redivcram; 09-18-2015 at 07:58.
|
|