Mapandreas Help
#8

Quote:

public NewPos(playerid)
{
if( Zombies[playerid][LastZombieHealth] > 0.0 )
{
new Float:x,Float:y,Float:z;
new Float:ax,Float:ay,Float:az,Float:dif;
GetPlayerPos(Zombies[playerid][ZombieTarget],ax,ay,az);
GetPlayerPos(playerid,x,y,z);
if( az <= (z+3.0) && az >= (z-3.0))
{
if(Zombies[playerid][ZombieRunning] == 1)
{
ApplyAnimation(playerid,"Muscular","MuscleRun",1,1 ,1,0,0,0);
//ApplyAnimation(playerid,"ped","sprint_civi",4.0,1, 1,1,1,0);
GetXYInFrontOfPlayer(playerid,x,y,2.0);
}
else if(Zombies[playerid][ZombieRunning] == 2)
{
ApplyAnimation(playerid,"Muscular","MuscleSprint", 1,1,1,0,0,0);
//ApplyAnimation(playerid,"ped","sprint_civi",4.0,1, 1,1,1,0);
GetXYInFrontOfPlayer(playerid,x,y,2.8);
}

dif = az;
SetPlayerPos(playerid,x,y,dif);
}
else
{
if(Zombies[playerid][ZombieRunning]) Parar(playerid);
GetPlayerPos(playerid,x,y,z);
SetPlayerPosFindZ(playerid,x,y,z);
}
}
}

How do i do with my code help me man Thx
Reply


Messages In This Thread
Mapandreas Help - by SequenceCuz - 07.04.2013, 11:56
Re: Mapandreas Help - by iJumbo - 07.04.2013, 12:00
Re: Mapandreas Help - by SequenceCuz - 07.04.2013, 12:01
Re: Mapandreas Help - by SequenceCuz - 07.04.2013, 12:16
Re: Mapandreas Help - by iJumbo - 07.04.2013, 12:24
Re: Mapandreas Help - by SequenceCuz - 07.04.2013, 12:31
Re: Mapandreas Help - by iJumbo - 07.04.2013, 12:37
Re: Mapandreas Help - by SequenceCuz - 07.04.2013, 12:54
Re: Mapandreas Help - by iJumbo - 07.04.2013, 13:07

Forum Jump:


Users browsing this thread: 1 Guest(s)