29.06.2014, 20:07
Eae galera, eu queria uma ajuda nesse comando, eu quero que a explosгo seja sempre no angulo em que o player estiver pq o comando ta indo sempre pro lado Leste
pawn Код:
CMD:teste(playerid, params[])
{
SetTimerEx("Fogo",500,false,"i",playerid);
TogglePlayerControllable(playerid, false);
return 1;
}
forward Fogo(playerid);
public Fogo(playerid)
{
new Float:X,
Float:Y,
Float:Z,
Float:A;
GetPlayerPos(ID, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
PosicaoFrentePlayer(playerid, X, Y, 30);
CreateExplosion(X, Y+5, Z, 1, 5);
CreateExplosion(X, Y+10, Z, 1, 5);
CreateExplosion(X, Y+5, Z, 1, 5);
CreateExplosion(X, Y+10, Z, 1, 5);
CreateExplosion(X, Y+15, Z, 1, 5);
CreateExplosion(X, Y+20, Z, 1, 5);
CreateExplosion(X, Y+15, Z, 1, 5);
CreateExplosion(X, Y+20, Z, 1, 5);
CreateExplosion(X, Y+25, Z, 1, 5);
CreateExplosion(X, Y+30, Z, 1, 5);
CreateExplosion(X, Y+25, Z, 1, 5);
CreateExplosion(X, Y+30, Z, 1, 5);
CreateExplosion(X, Y-5, Z, 1, 5);
CreateExplosion(X, Y-5, Z, 1, 5);
CreateExplosion(X, Y-10, Z, 1, 5);
CreateExplosion(X, Y-10, Z, 1, 5);
CreateExplosion(X, Y-15, Z, 1, 5);
CreateExplosion(X, Y-15, Z, 1, 5);
CreateExplosion(X, Y-20, Z, 1, 5);
CreateExplosion(X, Y-20, Z, 1, 5);
CreateExplosion(X, Y-25, Z, 1, 5);
CreateExplosion(X, Y-25, Z, 1, 5);
CreateExplosion(X, Y-30, Z, 1, 5);
CreateExplosion(X, Y-30, Z, 1, 5);
TogglePlayerControllable(playerid, true);
ClearAnimations(playerid);
return true;
}