Raised This Month: $ Target: $400
 0% 

Help ME plzz


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Timmie
Junior Member
Join Date: Apr 2013
Old 04-28-2013 , 13:12   Help ME plzz
Reply With Quote #1

hey i need help to get the hudmessage say like this

public Task_Respawn(iPlayer)
{
//Respawn Player
ExecuteHamB(Ham_CS_RoundRespawn, iPlayer);

//Print to the player that he/she got respawned
set_hudmessage(0, 0, 255, -1.0, -1.0)
show_hudmessage(0, "In Game Name got respawned! wait 10 sec before killing");


//Disable respawn until next round
g_iRevivedOnce[iPlayer] = true;
}

Sorry For My Bad English
Timmie is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-28-2013 , 13:31   Re: Help ME plzz
Reply With Quote #2

What is your question or issue?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Timmie
Junior Member
Join Date: Apr 2013
Old 04-28-2013 , 13:39   Re: Help ME plzz
Reply With Quote #3

you see the it say "show_hudmessage(0, "In Game Name got respawned! wait 10 sec before killing");"
der states in gamename where I want while in game, anyone get respawn his name should stand there

If You Know whati meen

Sorry For My Ban English
Timmie is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-28-2013 , 13:41   Re: Help ME plzz
Reply With Quote #4

Then you should obtain the player's name and then format it into the string. There are examples of how to do this all over the place
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Timmie
Junior Member
Join Date: Apr 2013
Old 04-28-2013 , 13:43   Re: Help ME plzz
Reply With Quote #5

this code is coming from cashmod
can you help me ?? to fix it
public Task_Respawn(iPlayer)
{
//Respawn Player
ExecuteHamB(Ham_CS_RoundRespawn, iPlayer);

//Print to the player that he/she got respawned
set_hudmessage(0, 0, 255, -1.0, -1.0)
show_hudmessage(0, " got respawned! wait 10 sec");


//Disable respawn until next round
g_iRevivedOnce[iPlayer] = true;
}

public eRound_start()
{
//Bunc of variables
new iPlayers[32], iNum, iPid;

//Get all players
get_players( iPlayers, iNum, "a" );

//Browse through all players
for( new i; i < iNum; i++ )
{
iPid = iPlayers[i];

//Enable respawn
g_iRevivedOnce[iPid] = false;
}
}


public Event_DeathMsg()
{
//Get the killer
new killer = read_data(1);

//Get the victim + a variable
new victim = read_data(2);
new vic_name[128];
new format_text[128];
get_user_name(victim, vic_name, 127);


//Make sure that the killer exists
if( 1 <= killer <= get_maxplayers() )
{
//If victim is not killer
if( victim != killer )
{
//If victim is not a teammate of killer
if( cs_get_user_team( victim ) != cs_get_user_team( killer ) )
{
//If killer is still alive
if( is_user_alive( killer ) )
{
//Add cash to the killer
if( g_Admin[killer] && g_iCash[killer] < 99938 )
{
g_iCash[killer] += 40;
formatex(format_text, sizeof(format_text) - 1, "^x03You recieved 40 cash for killing^x04 %s", vic_name);
}
else
{
g_iCash[killer] += 40;
formatex(format_text, sizeof(format_text) - 1, "^x03You recieved 40 cash for killing^x04 %s", vic_name);
}
//Get the victims name
get_user_name(victim, vic_name, 127);

//Print out" to the player that he/she got cash
Print(killer, format_text, vic_name);
}

}

}

}
Timmie is offline
Timmie
Junior Member
Join Date: Apr 2013
Old 04-28-2013 , 13:52   Re: Help ME plzz
Reply With Quote #6

cany you help me?
Timmie is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 04-28-2013 , 14:04   Re: Help ME plzz
Reply With Quote #7

Quote:
Originally Posted by Timmie View Post
cany you help me?
don't make double post, use php for posting the code
baneado is offline
Timmie
Junior Member
Join Date: Apr 2013
Old 04-28-2013 , 14:08   Re: Help ME plzz
Reply With Quote #8

How
Timmie is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 04-28-2013 , 14:12   Re: Help ME plzz
Reply With Quote #9

Quote:
Originally Posted by Timmie View Post
How
PHP Code:
// Hello, I'm using php code 
baneado is offline
Timmie
Junior Member
Join Date: Apr 2013
Old 04-28-2013 , 14:14   Re: Help ME plzz
Reply With Quote #10

how i me so it say my name or a random person
Timmie is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:58.


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