Raised This Month: $ Target: $400
 0% 

[REQ CSGO] Flying text "ADMIN" on admin head


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-02-2014 , 17:11   Re: [REQ CSGO] Flying text "ADMIN" on admin head
Reply With Quote #11

Bacardi is offline
Chesterfield
Senior Member
Join Date: Apr 2013
Old 12-02-2014 , 17:52   Re: [REQ CSGO] Flying text "ADMIN" on admin head
Reply With Quote #12

Yes! that's exactly what i want Bacardi ! it looks amazing!

Last edited by Chesterfield; 12-02-2014 at 17:53.
Chesterfield is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 12-02-2014 , 18:08   Re: [REQ CSGO] Flying text "ADMIN" on admin head
Reply With Quote #13

Thats easy to do, I've used this in several plugins. The plugin would work in almost every game.
__________________
zipcore is offline
Chesterfield
Senior Member
Join Date: Apr 2013
Old 12-02-2014 , 19:00   Re: [REQ CSGO] Flying text "ADMIN" on admin head
Reply With Quote #14

And what would you need to make it? Francisco asked me for a vtf with the logo and the text that i wanted for example
Chesterfield is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-02-2014 , 21:13   Re: [REQ CSGO] Flying text "ADMIN" on admin head
Reply With Quote #15

ohhh want this as well with flag support
Bacardi stop teasing us!
8guawong is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-03-2014 , 08:33   Re: [REQ CSGO] Flying text "ADMIN" on admin head
Reply With Quote #16

Here what I made today...
Attached Images
File Type: jpg WP_20141203_004.jpg (91.2 KB, 853 views)
Bacardi is offline
Chesterfield
Senior Member
Join Date: Apr 2013
Old 12-03-2014 , 10:03   Re: [REQ CSGO] Flying text "ADMIN" on admin head
Reply With Quote #17

That's... e.. you're teasing us too much
Chesterfield is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-03-2014 , 23:29   Re: [REQ CSGO] Flying text "ADMIN" on admin head
Reply With Quote #18

https://forums.alliedmods.net/attach...hmentid=108082
look in icon folder
i don't know too much about sm....or i'd do it
but i'm sure you can use the file here to do this

ok i went ahead and removed the vip part
donno how to do the rest.....

PHP Code:
// Includes
#include <sourcemod>
#include <sdktools>

#undef REQUIRE_PLUGIN
#include <stamm>
#include <updater>


#pragma semicolon 1


new g_iStammView[MAXPLAYERS 1];


// Reset icons
public OnPluginStart()
{
    
HookEvent("player_spawn"eventPlayerSpawn);
    
HookEvent("player_death"eventPlayerDeath);
    

    for (new 
i=0<= MaxClientsi++) 
    {
        
g_iStammView[i] = 0;
    }
}

// Download Icon and preache it
public OnMapStart()
{
    
PrecacheModel("models/stamm/stammview.mdl");
    
    
AddFileToDownloadsTable("materials/models/stamm/stammview.vtf");
    
AddFileToDownloadsTable("models/stamm/stammview.mdl");
    
AddFileToDownloadsTable("materials/models/stamm/stammview.vmt");
    
AddFileToDownloadsTable("models/stamm/stammview.vvd");
    
AddFileToDownloadsTable("models/stamm/stammview.sw.vtx");
    
AddFileToDownloadsTable("models/stamm/stammview.phy");
    
AddFileToDownloadsTable("models/stamm/stammview.dx80.vtx");
    
AddFileToDownloadsTable("models/stamm/stammview.dx90.vtx");
}




// Create icons for vips on spawn
public Action:eventPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{    
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    

    if ((
GetClientTeam(client) == || GetClientTeam(client) == 3) && IsPlayerAlive(client)) 
        {
            
// Create timer
            
CreateTimer(2.5CreateStammGetClientUserId(client));
        }
}

// Delete icon on death
public Action:eventPlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{    
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
    
// Client have an icon
    
if (g_iStammView[client] != 0
    {
        if (
IsValidEntity(g_iStammView[client]))
        {
            
decl String:class[128];
            
            
GetEdictClassname(g_iStammView[client], class, sizeof(class));
            
            
// Delete
            
if (StrEqual(class, "prop_dynamic")) 
            {
                
RemoveEdict(g_iStammView[client]);
            }
        }
        
        
g_iStammView[client] = 0;
    }
}




// Create the icon
public Action:CreateStamm(Handle:timerany:userid)
{
    new 
client GetClientOfUserId(userid);
    
        if ((
GetClientTeam(client) == || GetClientTeam(client) == 3) && IsPlayerAlive(client))
        {
            
// First delete old one
            
if (g_iStammView[client] != 0
            {
                if (
IsValidEntity(g_iStammView[client]))
                {
                    
decl String:class[128];
                    
                    
                    
GetEdictClassname(g_iStammView[client], class, sizeof(class));
                    
                    if (
StrEqual(class, "prop_dynamic")) 
                    {
                        
RemoveEdict(g_iStammView[client]);
                    }
                }
            }
            
            
            
// Create the new one
            
new view CreateEntityByName("prop_dynamic");
            
            if (
view != -1)
            {
                
// Set up the entity
                
DispatchKeyValue(view"DefaultAnim""rotate");
                
DispatchKeyValue(view"spawnflags""256");
                
DispatchKeyValue(view"model""models/stamm/stammview.mdl");
                
DispatchKeyValue(view"solid""6");
                
                
// Spawn it
                
if (DispatchSpawn(view))
                {
                    
decl Float:origin[3];
                    
decl String:steamid[20];
                    
                    
// Valid?
                    
if (IsValidEntity(view))
                    {
                        
// Mark players entity and spawn it to him
                        
g_iStammView[client] = view;
                        
                        
GetClientAbsOrigin(clientorigin);
                        
                        
origin[2] = origin[2] + 90.0;
                        
                        
TeleportEntity(vieworiginNULL_VECTORNULL_VECTOR);
                        
                        
GetClientAuthString(clientsteamidsizeof(steamid));
                        
DispatchKeyValue(client"targetname"steamid);
                        
                        
SetVariantString(steamid);
                        
AcceptEntityInput(view"SetParent", -1, -10);
                    }
                }
            }
        }


Last edited by 8guawong; 12-03-2014 at 23:40.
8guawong is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-04-2014 , 03:51   Re: [REQ CSGO] Flying text "ADMIN" on admin head
Reply With Quote #19

ok here it is modified code from stamm's vip plugin
grab the materials and models from stamm's vip plugin
https://forums.alliedmods.net/attach...hmentid=108082

give yourself root to have the icon appear ontop of you ;)

now just need to find a way to change the text / models

or some1 willing to change it so it'll display sprites which will be easier to create i think
Attached Files
File Type: sp Get Plugin or Get Source (ICON.sp - 619 views - 3.0 KB)

Last edited by 8guawong; 12-04-2014 at 03:56.
8guawong is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-04-2014 , 07:25   Re: [REQ CSGO] Flying text "ADMIN" on admin head
Reply With Quote #20

version with sprites
Attached Files
File Type: zip icon_test01 (1).zip (9.9 KB, 249 views)
8guawong is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode