AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   hm no: setScreenFlash (https://forums.alliedmods.net/showthread.php?t=25924)

graczu 03-23-2006 18:59

hm no: setScreenFlash
 
what function is now: setScreenFlash

plz....

i cant do this:
Code:

        new czas = 60
        new jac1=random_num(0,255)
        new jac2=random_num(0,255)
        new jac3=random_num(0,255)       

        set_hudmessage(jac1, jac2, jac3, 0.65, 0.75, 2, 0.02, 1.0, 0.01, 0.1, 10) 
        show_hudmessage(0,"=============^nWAIT!! WAIT!! WAIT!!^nRESTART ZA: %i sec^n=============", czas)
        czas--
        new inum = get_maxplayers();
        for (new i=1;i <= inum;i++){
                        setScreenFlash(i, jac1, jac2, jac3, 10, 50 )
                }

with out this function ;x

VEN 03-24-2006 02:35

what?

akysiev 03-24-2006 07:04

That function belongs to either the plugin itself or a custom include file.

v3x 03-24-2006 07:28

Quote:

Originally Posted by akysiev
That function belongs to either the plugin itself or a custom include file.

Oh, I thought it was an AMX Mod X native :stupid:

Thank you, Cpt. Obvious.

akysiev 03-24-2006 08:36

v3x, he asked where/what the function is and was obviously under the impression that it was a native. I don't see what's wrong with my answer.

Werewolf 03-24-2006 17:41

You can do like this. (Copied from pokemod.sma)
Code:
 setScreenFlash(id, r, g, b, alpha)  {     message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)     write_short( 1<<10 )     write_short( 1<<10 )     write_short( 1<<12 )     write_byte( r )     write_byte( g )     write_byte( b )     write_byte( alpha )     message_end()  }

1 question. Why do you have 6 hmm... Well what should we call it?
Thingies :roll:
i, jac1, jac2, jac3, 10, 50
Why 6 of them? You need the index, red amount, green amount, blue amount, alpha. The red green and blue is rgb colors btw.


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

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