Raised This Month: $ Target: $400
 0% 

possible to do a client alias?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
beretta
Junior Member
Join Date: May 2005
Old 05-15-2005 , 01:15   possible to do a client alias?
Reply With Quote #1

i know that you can do a client bind through the client_cmd, but is it possible to do the same with an alias" Thanks in advance
beretta is offline
f1del1ty.oXi
Veteran Member
Join Date: Nov 2004
Old 05-15-2005 , 02:52  
Reply With Quote #2

of course, especially with AMX_EXEC?

amx_exec "player" "alias something something1;somethinganother;something3;"

Most likely. If it's a client command then SOMEHOW, you can do it.
__________________
f1del1ty.oXi is offline
beretta
Junior Member
Join Date: May 2005
Old 05-15-2005 , 03:05  
Reply With Quote #3

well im talking about coding a plugin, for example:
client_cmd ( id, "alias w10 w; w; w; w; w; w; w; w; w; w" )
this doesnt work because of the semi-colons. Is there a way around this?
beretta is offline
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 05-15-2005 , 05:09  
Reply With Quote #4

Ok this is just wild quessing...
Will this work?
Code:
new alias = "alias omg; lol; omfgz0rz; roflmao" client_cmd(id, alias)
XunTric is offline
beretta
Junior Member
Join Date: May 2005
Old 05-15-2005 , 12:18  
Reply With Quote #5

i cant get that to work either...
beretta is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 05-15-2005 , 12:33  
Reply With Quote #6

does ^; work?
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
beretta
Junior Member
Join Date: May 2005
Old 05-15-2005 , 15:21  
Reply With Quote #7

i guess not, i get an "invalid character constant" error.
beretta is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 05-15-2005 , 15:32  
Reply With Quote #8

then I have no idea....

really wired that ; counts as a closing semicolon even if it is a string...

Im new to small, so dont know.
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
Reply



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 16:46.


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