AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   possible to do a client alias? (https://forums.alliedmods.net/showthread.php?t=13390)

beretta 05-15-2005 01:15

possible to do a client alias?
 
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

f1del1ty.oXi 05-15-2005 02:52

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.

beretta 05-15-2005 03:05

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?

XunTric 05-15-2005 05:09

Ok this is just wild quessing...
Will this work?
Code:
new alias = "alias omg; lol; omfgz0rz; roflmao" client_cmd(id, alias)

beretta 05-15-2005 12:18

i cant get that to work either...

WaZZeR++ 05-15-2005 12:33

does ^; work?

beretta 05-15-2005 15:21

i guess not, i get an "invalid character constant" error.

WaZZeR++ 05-15-2005 15:32

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.


All times are GMT -4. The time now is 16:46.

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