11.06.2012, 15:26
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if(Equipes[playerid] == 2)
{
new Float:X, Float:Y, Float:Z,vida,vitima;
GetPlayerPos(vitima,X,Y,Z);
if(IsPlayerInRangeOfPoint(playerid,3.0,X,Y,Z))
{
SetPlayerHealth(vitima,vida -10);
}
}
} // WTF? AFF ta aparecendo " } " que nгo coloquei O_O
return 1;
}