AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Cmd name (https://forums.alliedmods.net/showthread.php?t=23043)

ArchAngel_Antey 01-09-2006 12:51

Cmd name
 
I want to clear effect of "Cmd name" command.... How can I do this? Function "client_command(id)" isn`t working for cmd name.... I tried to search here plugin that corrects this, but found nothing. Help please!

And another problem... I`m using this code:
Code:

set_hudmessage(255, 0, 0, -1.0, 0.3, 0, 6.0, 15)
show_hudmessage(id, "Here is the text")

This code was generated by AMXX-Studio v1.2 After all I see the message but it works only 1 (or maybe less) seconds... What is it?

Brad 01-09-2006 12:59

Moved from "Support/Help" forum.

[ --<-@ ] Black Rose 01-09-2006 13:03

i dunno if it would make a difference but probably it will, change last arg of set_hudmessage ("15") to "15.0"

Charr 01-09-2006 13:46

For your first thing, do you mean "name" in the console?

And for the set_hudmessage, you nly supplied 8 arguments, while set_hudmessage uses 11.
Code:

set_hudmessage ( red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2, channel=4 )
If you dont put the last arguments in, they are assumed to be 0

Xanimos 01-09-2006 14:57

Quote:

Originally Posted by Charr
For your first thing, do you mean "name" in the console?

And for the set_hudmessage, you nly supplied 8 arguments, while set_hudmessage uses 11.
Code:

set_hudmessage ( red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2, channel=4 )
If you dont put the last arguments in, they are assumed to be 0

No, they are assumed to be the defaults ( 0.1 , 0.2 , 4 ) :wink:

Charr 01-09-2006 15:00

:( ..well, I tried

ArchAngel_Antey 01-10-2006 16:40

Quote:

Originally Posted by Charr
For your first thing, do you mean "name" in the console?

I mean, that if client types in the console 'cmd name "Admin-LOL"' admin, that starts server(No hlds, only standart create game.... :) ) will be renamed to "Admin-LOL"... Or this "bug" only in my CS??? :? Sorry if I said something wrong, I`m very bad in english :D :D :D

I tried to use "public client_command(id)", maybe I am doing something wrong??? I`m only beginner in Pawn-scripting.... This function works only if I type in console "+jump"(sample), but if I type "cmd name", it doesn`t execute.... :shock:

ArchAngel_Antey 01-10-2006 16:42

Quote:

Originally Posted by Charr
For your first thing, do you mean "name" in the console?

And for the set_hudmessage, you nly supplied 8 arguments, while set_hudmessage uses 11.
Code:

set_hudmessage ( red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2, channel=4 )
If you dont put the last arguments in, they are assumed to be 0

I tried to use all 11 parameters and tried to add there random values and nothing helps... :cry:


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

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