 |
|
Senior Member
Join Date: Jul 2014
Location: BG
|

03-02-2015
, 09:28
Re: HUD
|
#4
|
Quote:
Originally Posted by bat
PHP Code:
#include amxmodx
#tryinclude cstrike
public client_putinserver ( id )
{
set_task( 8.0 , "messages" , . flags = " b " )
}
public messages ()
{
static id
for ( id = 1; id <= get_maxplayers(); id++ )
{
if ( is_user_connected( id ) && cs_get_user_team( id ) == CS_TEAM_SPECTATOR )
{
switch( random_num( 0 , 1 ) )
{
case 0:
{
set_dhudmessage( random_num( 0 , 255 ) , random_num( 0 , 255 ) , random_num( 0 , 255 ) , -1.0 , 0.20 , 2 , 6.0 , 3.0 , 0.1 , 1.5 )
show_dhudmessage( id , "Visit Our Site: here i add the adress^n[Premium: ADMIN For 4.80$ Skype: i add here my skype ] " )
}
case 1:
{
set_dhudmessage( random_num( 0 , 255 ) , random_num( 0 , 255 ) , random_num( 0 , 255 ) , -1.0 , 0.28 , 2 , 6.0 , 3.0 , 0.1 , 1.5 )
show_dhudmessage( id , "Published^n[INFO ADMIN, VIP Skype: i add here my skype]^n[E-mail: [email protected] ] " )
}
}
}
}
}
|
Sorry but when i add the code, and compile, gave this error:
//AMXXPC compile.exe
////SpecHudServerInformation.sma
// D:ZM\Tester/Counter-Strike 1.6\cstrike\addons\amxmodx\scripting\SpecHudS erverInformation.sma<21> : undefined symbol "set_dhudmessage"
// D:ZM\Tester/Counter-Strike 1.6\cstrike\addons\amxmodx\scripting\SpecHudS erverInformation.sma<21> : undefined symbol "set_dhudmessage"
// D:ZM\Tester/Counter-Strike 1.6\cstrike\addons\amxmodx\scripting\SpecHudS erverInformation.sma<21> : undefined symbol "set_dhudmessage"
// D:ZM\Tester/Counter-Strike 1.6\cstrike\addons\amxmodx\scripting\SpecHudS erverInformation.sma<21> : undefined symbol "set_dhudmessage"
// D:ZM\Tester/Counter-Strike 1.6\cstrike\addons\amxmodx\scripting\SpecHudS erverInformation.sma<21> : undefined symbol "set_dhudmessage"
__________________
|
|
|
|