Raised This Month: $32 Target: $400
 8% 

Deathrun vip plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-22-2020 , 08:03   Re: Deathrun vip plugin
Reply With Quote #11

Hmm isn't it about the same? I mean the user has to change the names himself anyways, even if i use that function, no?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-22-2020 , 09:14   Re: Deathrun vip plugin
Reply With Quote #12

True, but this way you need to change it in just 1 place in the code, not 3 or more.

Code:
new const g_szModel[] = "vip" public plugin_precache() {     precache_player_model(g_szModel) } public some_function(id) {     cs_set_user_model(id, g_szModel) }
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-22-2020 , 09:23   Re: Deathrun vip plugin
Reply With Quote #13

Quote:
Originally Posted by OciXCrom View Post
True, but this way you need to change it in just 1 place in the code, not 3 or more.

Code:
new const g_szModel[] = "vip" public plugin_precache() {     precache_player_model(g_szModel) } public some_function(id) {     cs_set_user_model(id, g_szModel) }
Yes i understand, but there's just one player model and 2 knife models, which means i need to declare 2 functions, one for the player model and one for the knife models
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 19:27.


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