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