ItsMods

Full Version: How to change load message?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
where do I need to call the "NewDidYouKnow()" ?
In _load.gsc at onPlayerConnect?
(07-04-2012, 16:09)TheRaZ Wrote: [ -> ]where do I need to call the "NewDidYouKnow()" ?
In _load.gsc at onPlayerConnect?

When the player connects Tongue
(07-04-2012, 16:25)Rendflex Wrote: [ -> ]
(07-04-2012, 16:09)TheRaZ Wrote: [ -> ]where do I need to call the "NewDidYouKnow()" ?
In _load.gsc at onPlayerConnect?

When the player connects Tongue

I have tried onPlayerConnect() in:
_events.gsc - not worked (compile error)
_rank.gsc - server starting normally, but messages not working
_zkslist.gsc (custom mod gsc) - not worked (compile error)

Code:
        player thread maps\mp\_players::NewDidYouKnow();

Any idea?
No... _players.gsc doesn't exist for you, just put the thread I posted in your .GSC.
(07-04-2012, 18:31)Rendflex Wrote: [ -> ]No... _players.gsc doesn't exist for you, just put the thread I posted in your .GSC.

It is exist, I have created it.

Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

NewDidYouKnow()
    {
        switch(Randomint(4))
        {
        case 0:
            self setClientDvar("didyouknow", "RaZ's TDM Mod v1.4 welcomes you!");
            break;
    
        case 1:
            self setClientDvar("didyouknow", "Press 3 to use the inbuilt Hello all message");
            break;
        
        case 2:
            self setClientDvar("didyouknow", "Welcome you on my server! Have fun!");
            break;
        
        case 3:
            self setClientDvar("didyouknow", "Always play fair and please do not camp!");
            break;
        
        case 4:
            self setClientDvar("didyouknow", "Do not steal killstreak packages or you will die.");
            break;
        }
    }
Pages: 1 2