12.06.2012, 15:45
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(i == playerid) continue;
if(IsPlayerInRangeOfPoint(i,3.0,X,Y,Z)) {
new str[18];
format(str, sizeof(str), "~r~Mordida~w~100$");
GameTextForPlayer(playerid, str, 3000, 1);
GivePlayerMoney(playerid, 100);
ApplyAnimation(playerid,"BASEBALL","Bat_Hit_1",4.1,1,1,1,1,1,1);
GetPlayerHealth(i, vida);
SetPlayerHealth(i,vida -10);
}
}
}
} // WTF? AFF ta aparecendo " } " que nгo coloquei O_O
return 1;
}
pawn Код:
if(Equipes[playerid] == 1 ) {