Raised This Month: $ Target: $400
 0% 

Weapon_ID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
M4Maniac
Member
Join Date: Aug 2005
Old 02-28-2006 , 10:08   Weapon_ID
Reply With Quote #1

Quote:
new weapid = read_data(2); // get the weapon ID
That is for my new plugin for a new server skin, the deagle. What do i put for that?
M4Maniac is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 02-28-2006 , 13:36  
Reply With Quote #2

what?
VEN is offline
M4Maniac
Member
Join Date: Aug 2005
Old 02-28-2006 , 18:03  
Reply With Quote #3

I have created a plugin for my custom skin on my server, It has some things that idk what to fill in for them. They are:
Quote:
public set_models(id) {
if(!is_user_alive(id)) { // if the player is dead for some reason, prevent the rest of the function from being executed
return PLUGIN_CONTINUE;
}

new weapid = read_data(2); // get the weapon ID

switch(weapid) {
case CSW_M4A1: {
entity_set_string(id , EV_SZ_viewmodel , "models/v_deagle.mdl"); // set the view model
entity_set_string(id , EV_SZ_weaponmodel , "models/p_deagle.mdl"); // set the player (view) model
}
M4Maniac is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-28-2006 , 20:19  
Reply With Quote #4

Moved from "Support/Help" forum.
Brad is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-28-2006 , 20:27  
Reply With Quote #5

wtf I answered this already YOU MISUNDERSTOOD WHAT V3X SAID. YOU DO NOT HAVE TO CHANGE THAT LINE. INSTEAD CHANGE THIS:

Code:
switch(weapid) { case CSW_M4A1: {

TO

Code:
switch(weapid) { case ?????: {

WHERE ? IS THE CS WEAPON CONSTANT!

REPEAT, YOU DO NOT NEED TO CHANGE THAT LINE. when v3x said " get the weapon ID" you do not need to change that line, he is describing what that line does.

Yes, caps do help me read better too.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
M4Maniac
Member
Join Date: Aug 2005
Old 02-28-2006 , 21:45  
Reply With Quote #6

No no, That was an earyler post and i realised i had posted in the wrong place so i decided to move it.
M4Maniac 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 20:18.


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