Page 1 of 1

Old Plugin Of ZE V2.3

Posted: 17 Mar 2017, 20:11
by johnnysins2000
This is The Old Plugin Of Raheem

Which shows Win Messages in the form of Sprites but how about models instead if Sprite ?

check the code if it is correct or not :-

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "Zombie Escape: Sprite On Hud"
#define VERSION "1.1"
#define AUTHOR "Raheem"

new g_ct_win[] = "models/zombie_escape/escapesuccess.mdl" 
new g_t_win[] = "models/zombie_escape//escapefail.mdl"

new g_maxplayers
new tCount
new ctCount

native addPlayerSprite(id,Float:scale,Float:frameRate,szModel[],Float:fAngle, Float:fLen, Float:fTime,Float:fDistance , bool: bTransparent )

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	g_maxplayers = get_maxplayers()
}

public plugin_precache()
{
	precache_model(g_ct_win)
	precache_model(g_t_win)
}

public ze_roundend(id) {
	
	tCount = GetPlayersNum(CsTeams:CS_TEAM_T)
	ctCount = GetPlayersNum(CsTeams:CS_TEAM_CT)
	
	static id
	for (id = 1; id <= g_maxplayers; id++)
	{
		if(ctCount > tCount)
		{
			addPlayerSprite(id, 0.3, 50.0, g_ct_win, 20.0, 10.0, 3.0, 90.0, false)
		}
		else
		{
			addPlayerSprite(id, 0.3, 50.0, g_t_win, 20.0, 10.0, 3.0, 90.0, false)
		}
	
	}
}

stock GetPlayersNum(CsTeams:iTeam) {
    new iNum;
    for( new i = 1; i <= g_maxplayers; i++ ) {
        if( is_user_connected(i) && is_user_alive(i) && cs_get_user_team(i) == iTeam )
            iNum++;
    }
    return iNum;
}

Should I post this plugin if u give me the Permission ?

Re: Old Plugin Of ZE V2.3

Posted: 17 Mar 2017, 22:21
by Raheem
I'll release a new versions of all old plugins when i get time. All old plugins are badly coded and not suitable for our new optimized mod.

Re: Old Plugin Of ZE V2.3

Posted: 18 Mar 2017, 09:14
by johnnysins2000
OK bro I will wait

Re: Old Plugin Of ZE V2.3

Posted: 18 Mar 2017, 10:08
by Night Fury
You want that with models?
If yes, you'll get it tonight.

Re: Old Plugin Of ZE V2.3

Posted: 18 Mar 2017, 17:12
by Raheem
I'am released it guys, Here.