User weapon
Hey, I know how in PHP you do an IF statement like if($weapon == "1") { // do something }. Well, I need to know how to do this in AMXX lol..So if anybody could help me, I'd appreciate it. Thanks.
|
easy
Code:
|
Oh, I was going to do it a different way. I was going to use cs_get_weapon_id.
So would these be correct? CSW_KNIFE CSW_AWP |
yep
Code:
/* Id of weapons in CS */ |
Oh, k..thanks for the list!
Also, one more quick question...If I were to use set_user_maxspeed, what is the default speed of players in CS? |
kk
320 is defualt, when you use set_user_maxspeed, remember the speed is a float value, example:
Code:
|
Alright, I'm having a bit of trouble now..here's my code:
Code:
|
What errors are you getting?
|
No errors at all when I compile. It's just when I'm in the game it doesn't seem to set the speed higher. Maybe I just have the speeds wrong?
|
hmmm
lol 375 isn't high at all.... you wouldn't even notice a diff. Try 450-500 and also I would add this:
Code:
now if they change their weapon their speed will not stop. |
| All times are GMT -4. The time now is 13:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.