How can i set Variable?
Hellooooooo :D
I need put client variable in 1 when he say in amx_chat 123 amx_chat 123 How can i put the variable password in 1 if the message are 123? #define password "123" public cmdChat(id,level,cid,password1) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new message[192], name[32], players[32], inum, authid[32], userid read_args(message,191) remove_quotes(message) get_user_authid(id,authid,31) get_user_name(id,name,31) userid = get_user_userid(id) get_players(players,inum) log_amx("Chat: ^"%s<%d><%s><>^" chat ^"%s^"",name,userid,authid,message) log_message("^"%s<%d><%s><>^" triggered ^"amx_chat^" (text ^"%s^")",name,userid,authid,message) format(message,191,"(ADMINS) %s : %s",name,message) if(message==123) { password1 = 1; client_print(0,print_chat,"*** %s password set in 1 ***",name,message) } return PLUGIN_HANDLED } |
Re: How can i set Variable?
Try to use the 'small' tags when posting code.
Code:
|
| All times are GMT -4. The time now is 05:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.