invaild function
i tried to make mod that when ct type /buyak the ct get ak
but if teror writes it says that he cant with colorchat can somone help (the mod dont supposed to buy weapon,but to give weapon) PHP Code:
|
Re: invaild function
PHP Code:
|
Re: invaild function
Wow, you really fixed the code...
PHP Code:
PHP Code:
|
Re: invaild function
i missed a bracket :P
|
Re: invaild function
You fixed your bracket, but u still missed the problem.
give_item(id,"weapon_ak47") |
Re: invaild function
PHP Code:
|
Re: invaild function
Quote:
In addition to using cs_get_user_team() instead of get_use_team(), you should also use the CS_TEAM_ team constants to improve readability. You should also try to call natives as sparingly as possible, here you are checking a players team twice when one call will suffice. PHP Code:
|
Re: invaild function
Ty all but i must ask is this code correct also ? its compiled
PHP Code:
|
Re: invaild function
why are you using
"!=" ? != means that is not matching if get_user_team(id) was 3 or 2 this would appear to user: ColorChat(id, RED,"[Jailbreak]Only Guards Can Use Weapons Cmds") you can make it by the way if (something == somethingelse) if (get_user_team(id) == 2) |
Re: invaild function
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 20:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.