Raised This Month: $51 Target: $400
 12% 

[css]Giant player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
valsa
Junior Member
Join Date: Feb 2014
Old 02-06-2014 , 03:51   [css]Giant player
Reply With Quote #1

Is GetClientMaxs change size command?

What is player change size command?

such as https://forums.alliedmods.net/showthread.php?p=1774605

Last edited by valsa; 02-06-2014 at 04:32.
valsa is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-06-2014 , 05:13   Re: [css]Giant player
Reply With Quote #2

no

You change entity (player) propertie
PHP Code:
new Float:size 2.0// multiplier, 1.0 is normal
SetEntPropFloat(clientProp_Send"m_flModelScale"size); 
Bacardi is offline
valsa
Junior Member
Join Date: Feb 2014
Old 02-06-2014 , 05:36   Re: [css]Giant player
Reply With Quote #3

Thank you for reply.
Please tell me how to use it.
For example, how do you use it?
I'm sorry.I'm noob.

Quote:
/* Plugin Template generated by Pawn Studio */

#include <sourcemod>

public Plugin:myinfo =
{
name = "New Plugin",
author = "Unknown",
description = "<- Description ->",
version = "1.0",
url = "<- URL ->"
}

public OnPluginStart()
{
HookEvent("player_spawn", Event_Player_Spawn);
}

public Event_Player_Spawn(Handle:Event, const String:Name[], bool:dontBroadcast)
{
if (GetClientTeam(Client) == 2)
{
new Float:size = 3.0; // multiplier, 1.0 is normal
SetEntPropFloat(client, Prop_Send, "m_flModelScale", size);
}
}
don't move

Last edited by valsa; 02-06-2014 at 08:20.
valsa is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 02-06-2014 , 09:03   Re: [css]Giant player
Reply With Quote #4

You need to find out the client that player_spawn is firing for first (general events and their keys):
PHP Code:
public OnPluginStart()
{
    
HookEvent("player_spawn"Event_Player_Spawn);
}

public 
Event_Player_Spawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    if (
GetClientTeam(client) == 2)
    {
        
SetEntPropFloat(clientProp_Send"m_flModelScale"3.0); 
    }

__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)

Last edited by MasterOfTheXP; 02-06-2014 at 09:03.
MasterOfTheXP is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-06-2014 , 13:15   Re: [css]Giant player
Reply With Quote #5

Check out the player resize plugin.
Mitchell is offline
valsa
Junior Member
Join Date: Feb 2014
Old 02-07-2014 , 03:13   Re: [css]Giant player
Reply With Quote #6

Thanks everyone.I can resize T player now.thank you so match.
valsa is offline
Reply



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 12:04.


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