02.01.2017, 19:49
i know,
so u r saying this is correct?:
new name[MAX_PLAYER_NAME]; and new name2[MAX_PLAYER_NAME]; would work?
so u r saying this is correct?:
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
{
new string[128],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(issuerid, name2, sizeof(name2));
format(string, sizeof(string), "[RBOT]:{FFFFFF} {FF0FF0}%s {FFFFFF}Has Headshotted {F00F00}%d {FFFFFF}And Wins {F12F12}$2000$!", name, name2);
SendClientMessageToAll(0xF8F8F8FFF, string);
SetPlayerHealth(playerid, 0.0);
return 1;
}