Quote:
Originally Posted by ProIcons
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)
|
yeah ty so is this work and can you answer my question from the last comment?
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <engine>
#include <colorchat>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /buyak","cmd_getak")
}
public cmd_getak(id){
if (get_user_team(id) == 1){
ColorChat(id, RED,"[Jailbreak]Only Guards Can Use Weapons Cmds")
}
if (get_user_team(id) == 2){
give_item(id, "weapon_ak47")
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 70)
cs_set_user_bpammo(id, CSW_AK47, 200)
}
}