Headshot help
#3

i know,
so u r saying this is correct?:

PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    if(
issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        new 
string[128],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
                
GetPlayerName(playeridnamesizeof(name));
                
GetPlayerName(issueridname2sizeof(name2));
        
format(stringsizeof(string), "[RBOT]:{FFFFFF} {FF0FF0}%s {FFFFFF}Has Headshotted {F00F00}%d {FFFFFF}And Wins {F12F12}$2000$!"namename2);
        
SendClientMessageToAll(0xF8F8F8FFFstring);
        
SetPlayerHealth(playerid0.0);
        return 
1;

new name[MAX_PLAYER_NAME]; and new name2[MAX_PLAYER_NAME]; would work?
Reply


Messages In This Thread
Headshot help - by RyderX - 02.01.2017, 19:43
Re: Headshot help - by BiosMarcel - 02.01.2017, 19:46
Re: Headshot help - by RyderX - 02.01.2017, 19:49
Re: Headshot help - by Konstantinos - 02.01.2017, 19:50
Re: Headshot help - by RyderX - 02.01.2017, 19:52
Re: Headshot help - by iLearner - 02.01.2017, 19:53
Re: Headshot help - by Konstantinos - 02.01.2017, 19:53
Re: Headshot help - by RyderX - 02.01.2017, 19:54
Re: Headshot help - by GoldenLion - 02.01.2017, 19:56
Re: Headshot help - by RyderX - 02.01.2017, 19:56

Forum Jump:


Users browsing this thread: 2 Guest(s)