hud

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
morka
Gana aktyvus vartotojas
Posts: 292
Joined: 2011 Jan 08 00:21

hud

Post by morka »

Nelabai aisku kodel nerodo zinutes kitiems, o tik zaidejui. Kaip padaryt public hud? Ir kokie eina public ir client kodai pvz id, 0?

Code: Select all

public Request(id) {     new szName[33]    get_user_name(id, szName, 32);    new szMessage[128]    formatex(szMessage, charsmax(szMessage), "%s^nchange the command", szName);        sendHudMessage     (     .index       = id,      .message     = szMessage,    .red         = 255,     .green       = 120,     .blue        = 0,     .x           = 0.05,     .y           = 0.2,     .effect      = 2,     .fxTime      = 17.0,     .holdTime    = 15.0,     .fadeInTime  = 0.1,     .fadeOutTime = 3.0     ); }  sendHudMessage( const index, const message[], const red=255, const green=120, const blue=0,  const Float:x, const Float:y, const effect, const Float:fxTime,  const Float:holdTime, const Float:fadeInTime, const Float:fadeOutTime)//also and here i changed {     #define pack_color(%0,%1,%2) ( %2 + ( %1 << 8 ) + ( %0 << 16 ) )    #define write_float(%0)      ( write_byte( ( _:%0 & 0xFF ) ),       \     write_byte( ( _:%0 >>  8 ) & 0xFF ), \     write_byte( ( _:%0 >> 16 ) & 0xFF ), \     write_byte( ( _:%0 >> 24 ) & 0xFF ) )         message_begin( MSG_ONE, SVC_DIRECTOR, .player = index );     {         write_byte( strlen( message ) + 31 ); // size of write_*         write_byte( DRC_CMD_MESSAGE );         write_byte( effect );         write_long( pack_color( red, green, blue ) );         write_float( x );         write_float( y );         write_float( fadeInTime  );         write_float( fadeOutTime  );         write_float( holdTime );         write_float( fxTime );         write_string( message );     }     message_end(); }
Image

User avatar
xFrostas
Flooderis arba specialistas
Posts: 660
Joined: 2010 Sep 02 15:47
Skype: frost.lt

Re: hud

Post by xFrostas »

id - client
0 - pub

morka
Gana aktyvus vartotojas
Posts: 292
Joined: 2011 Jan 08 00:21

Re: hud

Post by morka »

beda padarau .index = 0, ismeta error :/
Image

User avatar
aaarnas
Vyr. diskusijų administratorius
Posts: 3891
Joined: 2010 Aug 31 13:21
Skype: fiarno
Contact:

Re: hud

Post by aaarnas »

Ten iš vis nesamonių prirašyta. Kam tas stulpelis visas parametrų? Tokie aprašymai pawn kalboje net neegzistuoja
Palikau CS pasaulį ;/ . Nebepasiekiamas.

morka
Gana aktyvus vartotojas
Posts: 292
Joined: 2011 Jan 08 00:21

Re: hud

Post by morka »

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests