Results 1 to 6 of 6
  1. #1
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,307
    My Mood
    Breezy

    [SOLVED]Sending message to everyone? - GSCs

    How would I send a message to everyone in a server for example; if a specific player had health less than 90, it would tell everyone that that player has the least amount of health or something.

    This is what I came up with so far and then I just got lost:

    [php]healthCheck()
    {
    while(1){
    if ( self.health < 90 )
    { // I'm lost!
    // Please help me!
    }
    }
    }[/php]
    Last edited by master131; 08-22-2010 at 10:41 PM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  2. #2
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy
    You could simply use the say function?

    Code:
    healthnotify()
    {
    while(1)
    	{
    	if ( self.health < 90 )
       		{ 
    		self sayall("^5Has only ^2self.health ^5health left! ");
           		}
        	}
    }

    Click on the banners to take a look at my mods.





  3. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,307
    My Mood
    Breezy
    Thanks Neekokeen! Also, how would I change the team I am in to Spectators?
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  4. #4
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,939
    Reputation
    478
    Thanks
    1,746
    My Mood
    Bored
    Marked as solved.


    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  5. #5
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy
    master131 let me know he didn't get it to work

    This should work
    Code:
    healthnotify() {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	self.maxhealth = 100; //Change this to what you want
    	self.health = self.maxhealth;
    	while ( 1 )
    	{
    		wait .4;
    		self endon ( "disconnect" );
    		self endon ( "death" );
    	if ( self.health < 90 )
    	{
    		self sayall("^5Has only ^2self.health ^5health left! ");
    		}
    	}
    }
    Ofcourse don't forget to add "self thread healthnotify();"

    @your other question. Hmm, can't think of a way to do that atm..

    Click on the banners to take a look at my mods.





  6. #6
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,307
    My Mood
    Breezy
    Quote Originally Posted by Neekokeen View Post
    master131 let me know he didn't get it to work

    This should work
    Code:
    healthnotify() {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	self.maxhealth = 100; //Change this to what you want
    	self.health = self.maxhealth;
    	while ( 1 )
    	{
    		wait .4;
    		self endon ( "disconnect" );
    		self endon ( "death" );
    	if ( self.health < 90 )
    	{
    		self sayall("^5Has only ^2self.health ^5health left! ");
    		}
    	}
    }
    Ofcourse don't forget to add "self thread healthnotify();"

    @your other question. Hmm, can't think of a way to do that atm..
    Thanks! Works fine now!
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

Similar Threads

  1. [SOLVED] Need help with my GSC errors!
    By ryanyukon199 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 6
    Last Post: 09-17-2010, 07:19 PM
  2. [SOLVED] how i host mapedite.gsc
    By redkevin25 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 5
    Last Post: 09-13-2010, 10:51 AM
  3. [SOLVED] send error report?
    By grk2meet in forum CrossFire Help
    Replies: 6
    Last Post: 08-05-2010, 01:15 AM
  4. [SOLVED] [HELP] How to inject .gsc files? [HELP]
    By Dedoseyou in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 06-20-2010, 04:20 PM
  5. [Request] Inbox Viewer/ Send Messages Viewer
    By mnpeepno2 in forum Visual Basic Programming
    Replies: 17
    Last Post: 01-18-2010, 12:10 AM