Wow, you really fixed the code...
PHP Code:
public cmd_getak(id){
if(get_user_team(id) == 2){
ColorChat(id, RED,"[Jailbreak]Only Guards Can Use Weapons Cmds")
}
}
else if(get_user_team(id) == 1) {
give_item(0,weapon_ak47)
}
}
->
PHP Code:
public cmd_getak(id){
if(get_user_team(id) == 2){
ColorChat(id, RED,"[Jailbreak]Only Guards Can Use Weapons Cmds")
}else if(get_user_team(id) == 1){
give_item(id, "weapon_ak47")
}
}
and is it the whole code of plugin? do you really need that many includes ? Also if it's for cstrike, you should use cs_get_user_team instead of get_user_team, it's more accurate and efficient.