Old Plugin Of ZE V2.3

General Discussion
Post Reply
johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 3 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 23
Contact:

Old Plugin Of ZE V2.3

#1

Post by johnnysins2000 » 3 Years Ago

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 ?
Nobody Is That Busy If They Make Time :roll:

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 2016
Joined: 3 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 115 times
Age: 22
Contact:

#2

Post by Raheem » 3 Years Ago

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.
Loading Raheem's signature, Please wait...
Image

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 3 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 23
Contact:

#3

Post by johnnysins2000 » 3 Years Ago

OK bro I will wait
Nobody Is That Busy If They Make Time :roll:

User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 650
Joined: 3 Years Ago
Location: Egypt
Has thanked: 35 times
Been thanked: 50 times
Age: 20
Contact:

#4

Post by Mohamed Alaa » 3 Years Ago

You want that with models?
If yes, you'll get it tonight.
Want your own mod edition? PM me.
Accepting web projects.
CS 1.6 hosting: powergamingtech.com

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 2016
Joined: 3 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 115 times
Age: 22
Contact:

#5

Post by Raheem » 3 Years Ago

I'am released it guys, Here.
These users thanked the author Raheem for the post:
sped (2 Years Ago)
Loading Raheem's signature, Please wait...
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests