10.06.2012, 17:54
Cara... eu jб lhe respondi quantas vezes sobre isto? eu jб postei o meu cmd que й funcional e vocк diz que nгo й, o paulor jб postou um cmd estava certo(eu acho) e nгo funciona com vocк... Isto siginifica que vocк й o ъnico que estб fazendo algo de errado, sу irei ajudar estб vez sobre este comando, TENTA ISSO AI!
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;
}