AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help ME plzz (https://forums.alliedmods.net/showthread.php?t=214557)

Timmie 04-28-2013 13:12

Help ME plzz
 
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

YamiKaitou 04-28-2013 13:31

Re: Help ME plzz
 
What is your question or issue?

Timmie 04-28-2013 13:39

Re: Help ME plzz
 
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

YamiKaitou 04-28-2013 13:41

Re: Help ME plzz
 
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

Timmie 04-28-2013 13:43

Re: Help ME plzz
 
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 04-28-2013 13:52

Re: Help ME plzz
 
cany you help me?

baneado 04-28-2013 14:04

Re: Help ME plzz
 
Quote:

Originally Posted by Timmie (Post 1941712)
cany you help me?

don't make double post, use php for posting the code

Timmie 04-28-2013 14:08

Re: Help ME plzz
 
How

baneado 04-28-2013 14:12

Re: Help ME plzz
 
Quote:

Originally Posted by Timmie (Post 1941726)
How

PHP Code:

// Hello, I'm using php code 


Timmie 04-28-2013 14:14

Re: Help ME plzz
 
how i me so it say my name or a random person http://tinypic.com/r/qsl6h0/5


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

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