Raised This Month: $ Target: $400
 0% 

get user model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cstrike37
Member
Join Date: Jan 2012
Old 05-01-2013 , 18:43   get user model
Reply With Quote #1

I've been searching for an hour on this and can't finds anything.
So my question is how do you get the user's model on death?

Example:
If the user model is SAS then if he dies, a custom death sound will play.
cstrike37 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-01-2013 , 19:16   Re: get user model
Reply With Quote #2

Simply use get_user_model in the killed event
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
cstrike37
Member
Join Date: Jan 2012
Old 05-01-2013 , 19:33   Re: get user model
Reply With Quote #3

/del

Last edited by cstrike37; 05-06-2013 at 21:41.
cstrike37 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-01-2013 , 19:35   Re: get user model
Reply With Quote #4

You never assign model a value
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
cstrike37
Member
Join Date: Jan 2012
Old 05-01-2013 , 19:43   Re: get user model
Reply With Quote #5

Can you give me an example?
cstrike37 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-01-2013 , 19:52   Re: get user model
Reply With Quote #6

Code:
public Ham_Killed_Post(victim, attacker)
{
    new model[32];
    get_user_model(victim, model, charsmax(model));
    
    if (equali(model, "sas"))
        // User died while using the SAS model
}
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
cstrike37
Member
Join Date: Jan 2012
Old 05-01-2013 , 19:53   Re: get user model
Reply With Quote #7

Alright thanks! ^__^
cstrike37 is offline
cstrike37
Member
Join Date: Jan 2012
Old 05-01-2013 , 20:50   Re: get user model
Reply With Quote #8

/del

Last edited by cstrike37; 05-06-2013 at 21:40.
cstrike37 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-01-2013 , 21:14   Re: get user model
Reply With Quote #9

equal returns 1 or 0, not True or False
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
cstrike37
Member
Join Date: Jan 2012
Old 05-01-2013 , 21:20   Re: get user model
Reply With Quote #10

it worked! Ty so much!!
cstrike37 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 10:47.


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