Need your help
#2

PHP код:
new Float:lastPos[3];
CMD:enter(playeridparams[])
{
    if(
IsPlayerInRangeOfPoint(playerid3.01553.779052, -1675.30004816.195312))
    {
        
GetPlayerPos(playeridlastPos[0], lastPos[1], lastPos[2]);
        
SetPlayerPos(playerid246.669565.80391003.6406);//PD
        
SetPlayerInterior(playerid6);
    }
    else if(
IsPlayerInRangeOfPoint(playerid3.01929.604980, -1776.35595713.546875))
    {
        
GetPlayerPos(playeridlastPos[0], lastPos[1], lastPos[2]);
        
SetPlayerPos(playerid, -25.7220, -187.82161003.5469);//Shop1
        
SetPlayerInterior(playerid17);
    }
    else if(
IsPlayerInRangeOfPoint(playerid3.02423.711181, -1742.24865713.546875))
    {
        
GetPlayerPos(playeridlastPos[0], lastPos[1], lastPos[2]);
        
SetPlayerPos(playerid, -25.7220, -187.82161003.5469);//Shop2
        
SetPlayerInterior(playerid17);
    }
    return 
1;
}
CMD:exit(playeridparams[])
{
    if(
IsPlayerInRangeOfPoint(playerid3.0246.669565.80391003.6406))
    {
        
GetPlayerPos(playeridlastPos[0], lastPos[1], lastPos[2]);
        
SetPlayerPos(playerid1553.779052, -1675.30004816.195312);//PD
        
SetPlayerInterior(playerid0);
    }
    else if(
IsPlayerInRangeOfPoint(playerid3.0, -25.7220, -187.82161003.5469))
    {
        
GetPlayerPos(playeridlastPos[0], lastPos[1], lastPos[2]);
        
SetPlayerPos(playerid1929.604980, -1776.35595713.546875);//Shop1
        
SetPlayerInterior(playerid0);
    }
    else if(
IsPlayerInRangeOfPoint(playerid3.0, -25.7220, -187.82161003.5469))
    {
        
GetPlayerPos(playeridlastPos[0], lastPos[1], lastPos[2]);
        
SetPlayerInterior(playerid0);
        
SetPlayerPos(playerid2423.711181, -1742.24865713.546875);//Shop2
    
}
    return 
1;

Reply


Messages In This Thread
Need your help - by canip - 16.05.2016, 13:00
Re: Need your help - by BiosMarcel - 16.05.2016, 14:29
Re: Need your help - by canip - 16.05.2016, 15:11
Re: Need your help - by BiosMarcel - 16.05.2016, 15:31
Re: Need your help - by Sew_Sumi - 16.05.2016, 15:39
Re: Need your help - by canip - 16.05.2016, 16:22
Re: Need your help - by Sew_Sumi - 16.05.2016, 17:11

Forum Jump:


Users browsing this thread: 2 Guest(s)