Raised This Month: $ Target: $400
 0% 

get_user_info: Reading number command of the client, if "this" do "that" [...]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SpeedHacker.
Junior Member
Join Date: Dec 2008
Old 01-01-2009 , 19:30   get_user_info: Reading number command of the client, if "this" do "that" [...]
Reply With Quote #1

Hello,

I wanted a .sma plugin to read the color of the crosshair of a player (cl_crosshair_color), if "189 342 874" make the player
say "ExecScreen On" and if any other color rename the player to [ES-Off]"old name of the player":


PHP Code:
get_user_info(id"cl_crosshair_color",cl_crosshair_color31
if(
cl_crosshair_color == "152 132 854"){
client_print(id,print_chat,"[ ExecScreen On ]")
}
else{
client_cmd("name ^"[ES-Off]%s^"",name)
client_print(id,print_chat,"ExecScreen Off!")
client_print(id,print_console,"ExecScreen Off!")
client_print(id,print_notify,"ExecScreen Off!")
client_print(id,print_center,"ExecScreen Off!")

I tried but did not quite right :/
__________________

[img]http://img110.**************/img110/2851/1528sx6.gif[/img]


Last edited by SpeedHacker.; 01-02-2009 at 14:03.
SpeedHacker. 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 09:18.


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