Eu estava entediado, eu fiz um sistema simples headshot eh.
ARMAS:
Sniper Rifle
Rifle
ARMAS:
Sniper Rifle
Rifle
VAMOS LÁ:
TOPO GM:
- Código:
#include <a_samp>
EM SUA:
public OnPlayerTakeDamage
- Código:
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34,33 && bodypart == 9)
{
SetPlayerHealth(playerid, 0.0);
new stringa[80];
GetPlayerName(playerid, name, sizeof(name));
format(stringa, sizeof(stringa), "[ ! ]:[%s] Ele foi morto por um tiro na cabeça", name);
SendClientMessageToAll(0xFFFF00FF,stringa);
}
return 1;
}
GOSTOU DO SISTEMA? +REP COMENTÁRIOS POSITIVOS.
NÃO GOSTOU? COMENTÁRIOS FALANDO O QUE PRECISO MELHORAR.
By:Chefao_Unknown