Headshot help
#1

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

i know this code is wrong, im just asking how to make string for issuerid and for playerid, i know for playerid like this
name[MAX_PLAYER_NAME];
what about issuerid? Help hope that u have understand what i meant to ask
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: 5 Guest(s)