SA-MP Forums Archive
Mapandreas Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Mapandreas Help (/showthread.php?tid=428876)



Mapandreas Help - SequenceCuz - 07.04.2013

Guys i wanna ask all of u


If i use plugins Mapandres

I have only My Zombie npc and it can walk throught the wall the tower

If i use Mapandres It will can't walk throght?


And how to use it or just use plugin?? no function>>??


Thank man


Re: Mapandreas Help - iJumbo - 07.04.2013

The "zombie" will climb all walls in a microsecond


Re: Mapandreas Help - SequenceCuz - 07.04.2013

Yeah but only just Use plugin??


Put it in my server then Runn??


Or i have to do another step??


Re: Mapandreas Help - SequenceCuz - 07.04.2013

Someone told me please?

Anyone can


Re: Mapandreas Help - iJumbo - 07.04.2013

you have to use the function

MapAndreas_FindZ_For2DCoord(Float:X, Float:Y, &Float:Z);

Read all from https://sampforum.blast.hk/showthread.php?tid=120013

Do not bump topic please


Re: Mapandreas Help - SequenceCuz - 07.04.2013

Im not really understand man Im thailand

So can u explaine me here how to use


Re: Mapandreas Help - iJumbo - 07.04.2013

For example you get the player position
pawn Code:
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
//so now you have stored the player pos in X Y Z float vars
//now you want to find the Z cord from X Y
//using MapAndreas_FindZ_For2DCoord(Float:X, Float:Y, &Float:Z);
MapAndreas_FindZ_For2DCoord(X,X,Z);
//now variable Z is the right Z cord!
//that means take right Z from given X Y cord



Re: Mapandreas Help - SequenceCuz - 07.04.2013

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


Re: Mapandreas Help - iJumbo - 07.04.2013

Where did you set the zombie position