21.04.2014, 17:37
Quote:
Plagiar, й tambйm criar meu prуprio sistema? se estou pedindo ajuda no meu hs, deve ser por que, que estou criando do 0!
|
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9) //weaponid == 34 <- sniper , bodypart == 9 <- cabeзa
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x, y, z, 12, 10.0);
SetPlayerHealth(playerid, 0.0);
GameTextForAll("~n~~n~~n~~n~~n~~n~~B~~H~HEAD ~W~~H~SHOT ~R~~H~BABY !", 5000, 3);
SendClientMessage(playerid,-1, "{F55454}[INFO]: Vocк acaba de levar 1 HS , {7CF881}NOOB.");
}
new Float:HP;
GetPlayerHealth(playerid, HP);
if(weaponid == 24) SetPlayerHealth(playerid, HP-51); //DesertEagle
if(weaponid == 22) SetPlayerHealth(playerid, HP-35); //Colt45
if(weaponid == 23) SetPlayerHealth(playerid, HP-30); //SilencedColt
if(weaponid == 31) SetPlayerHealth(playerid, HP-25); //M4
if(weaponid == 30) SetPlayerHealth(playerid, HP-35); //AK
if(weaponid == 29) SetPlayerHealth(playerid, HP-30); //MP5
if(weaponid == 34) SetPlayerHealth(playerid, HP-49); //SniperRifle
if(weaponid == 33) SetPlayerHealth(playerid, HP-50); //CountryRifle
if(weaponid == 25) SetPlayerHealth(playerid, HP-40); //PumpShotgun
if(weaponid == 27) SetPlayerHealth(playerid, HP-25); //Spaz12
//SOUND
if(issuerid != INVALID_PLAYER_ID) PlayerPlaySound(issuerid,17802,0.0,0.0,0.0), PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
//SOUND
return 1;
}