|
Junior Member
|

09-17-2015
, 08:04
Re: HELP::..::edit script
|
#2
|
it's working now. thank friend
but with little bug ...if you login into the server as CT team you get CT team PICTURE.
and if you change to T team inside the server the picture not changing
you must login first as ct or t to get the right pictures
[QUOTE=redivcram;2343840]
PHP Code:
#include <amxmodx> #include <cstrike> #include <acg>
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_putinserver(id) { if (acg_userstatus(id)) { set_task(3.0,"showtga",id) } }
public showtga(id) { //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 }
Last edited by Big Noob; 09-17-2015 at 09:44.
|
|