02.01.2017, 19:43
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];
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);
new string1[128]; new name3[MAX_PLAYER_NAME];
GetPlayerName(issuerid, name3, sizeof(name3));
format(string1, sizeof(string1), "~P~ Got Pawned :[ By %s.", name3);
GameTextForPlayer(playerid, string, 3000, 6);
}
return 1;
}
name[MAX_PLAYER_NAME];
what about issuerid? Help hope that u have understand what i meant to ask