Raised This Month: $ Target: $400
 0% 

invaild function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dr7sTyLe
Senior Member
Join Date: Dec 2010
Old 04-24-2011 , 15:49   Re: invaild function
Reply With Quote #10

Quote:
Originally Posted by ProIcons View Post
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(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /buyak","cmd_getak")
}

public 
cmd_getak(id){
    if (
get_user_team(id) == 1){
        
ColorChat(idRED,"[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(idCSW_DEAGLE70)
        
cs_set_user_bpammo(idCSW_AK47200)
    }

Dr7sTyLe is offline
 



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:01.


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