EnsurePlayerSpawn(playerid,x,y,z);
#6

pawn Код:
//top
new Float:x2,y2,z2,angle2;
forward MINZCHECK(playerid);

stock EnsurePlayerSpawn(playerid,Float:x,Float:y,Float:z,Float:angle)
{
    SetPlayerPos(playerid,x2,y2,z2);
    SetplayerFacingAngle(playerid,angle2);
    SetTimer("MINZCHECK", 1500, 1);  
}

public MINZCHECK(playerid)
{
    new Float:tempx,tempy,tempz;
    GetPlayerPos(playerid,tempx,tempy,tempz);
    if(tempz<z2)
    {
      SetPlayerPos(playerid,x2,y2,z2);
        return 1;
    }
    else if(tempz>=z2)
    {
        KillTimer(MINZCHECK(playerid));
    }
    return 1;
}
Reply


Messages In This Thread
EnsurePlayerSpawn(playerid,x,y,z); - by Enzo_Ferrari_V12 - 16.10.2009, 01:10
Re: EnsurePlayerSpawn(playerid,x,y,z); - by ilikepie2221 - 16.10.2009, 01:20
Re: EnsurePlayerSpawn(playerid,x,y,z); - by Enzo_Ferrari_V12 - 16.10.2009, 01:59
Re: EnsurePlayerSpawn(playerid,x,y,z); - by CracK - 16.10.2009, 02:04
Re: EnsurePlayerSpawn(playerid,x,y,z); - by Enzo_Ferrari_V12 - 16.10.2009, 02:22
Re: EnsurePlayerSpawn(playerid,x,y,z); - by CracK - 16.10.2009, 03:51
Re: EnsurePlayerSpawn(playerid,x,y,z); - by Extremo - 16.10.2009, 07:28
Re: EnsurePlayerSpawn(playerid,x,y,z); - by CracK - 16.10.2009, 08:10
Re: EnsurePlayerSpawn(playerid,x,y,z); - by Sergei - 16.10.2009, 08:16
Re: EnsurePlayerSpawn(playerid,x,y,z); - by Extremo - 16.10.2009, 08:32

Forum Jump:


Users browsing this thread: 1 Guest(s)