public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid) { new Float:Health, Float:Armour; GetPlayerHealth( damagedid , Health ); GetPlayerArmour( damagedid , Armour ); if( Chidorigatana[playerid] == true ) { (Congelar a Pessoa que estou Batendo aqui) Health = Health - 45; SetPlayerHealth( damagedid, Health); } return 1; } |
// Creditos Base ipsBruno
new
Float:x,
Float:y,
Float:z,
Keys,
ud,
lr
;
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
GetPlayerKeys(playerid,Keys,ud,lr);
if(Keys == KEY_FIRE && GetPlayerWeapon(playerid) == 0) {
for(new i=0;i<500;i++) {
if(IsPlayerConnected(i)) {
GetPlayerPos(playerid, x, y, z);
if(playerid != i){
if(IsPlayerInRangeOfPoint(i, 1.5, x,y,z)) {
TogglePlayerControllable(playerid,0);
}
}
}
}
}
return SendClientMessage(playerid,-1," Voce Levo um Soco tб ligado? Tб Congelado Pa Cala Bocaa ");
}
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
new Float:Health, Float:Armour;
GetPlayerHealth( damagedid , Health );
GetPlayerArmour( damagedid , Armour );
if( Chidorigatana[playerid] == true )
{
TogglePlayerControllable(damagedid, false);
Health = Health - 45;
SetPlayerHealth( damagedid, Health);
}
return 1;
}