16.05.2015, 16:18
jimmmy o meu iria funcionar corretamente ?
pawn Код:
if(weaponid == 34)
{
if(damagedid != INVALID_PLAYER_ID)
{
new string[128], hitado[MAX_PLAYER_NAME];
GetPlayerName(damagedid, hitado, sizeof (hitado));
new Float:x, Float:y, Float:z;
GetPlayerPos(damagedid, x, y, z);
new Float: distancia = GetPlayerDistanceFromPoint(playerid, x, y, z);
format(string, sizeof(string), "{B50909}[H.I.T] {FFFFFF}Hit confirmando em:{17A80F}%s[%d]:{FFFFFF}Distancia {17A80F}.:%d Feet(s) [Danos: %d]",hitado, damagedid, distancia, amount);
SendClientMessage(playerid , 0xFFFFFFFF, string);
}
}