Old Plugin Of ZE V2.3

General Discussion


Post Reply
johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

Old Plugin Of ZE V2.3

#1

Post by johnnysins2000 » 7 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
Posts: 2214
Joined: 7 years ago
Contact:

#2

Post by Raheem » 7 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.
He who fails to plan is planning to fail

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#3

Post by johnnysins2000 » 7 years ago

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

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#4

Post by Night Fury » 7 years ago

You want that with models?
If yes, you'll get it tonight.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#5

Post by Raheem » 7 years ago

I'am released it guys, Here.
He who fails to plan is planning to fail

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 6 guests