pomoc oko /exit...

Započeo ђเאק, Oktobar 03, 2009, 15:47:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

evo ovako mi izgleda /enter:

    if(strcmp(cmdtext, "/enter", true) == 0)
    {
    if(PlayerToPoint(5.0, playerid, 1552.4479,-1674.9888,16.1953)) //PD
{
    SetPlayerPos(playerid, 246.7840,63.9002,1003.6406);
    SetPlayerInterior(playerid, 6);
}

    else if(PlayerToPoint(5.0, playerid, 1480.8458,-1770.4805,18.7958)) //Vjecnica
{
    SetPlayerPos(playerid, 387.7312,173.8142,1008.3828);
    SetPlayerInterior(playerid, 3);
}

else if(PlayerToPoint(5.0, playerid, 2244.5925,-1663.2600,15.4766)) //binco
{
    SetPlayerPos(playerid, 363.4141,-74.5788,1001.5078);
    SetPlayerInterior(playerid, 15);
}

else if(PlayerToPoint(5.0, playerid, 1200.0632,-920.3331,43.1079)) //burg
{
    SetPlayerPos(playerid, 246.7840,63.9002,1003.6406);
    SetPlayerInterior(playerid, 10);
}
return 1;
}


a ovako exit...

    if(strcmp(cmdtext, "/exit", true) == 0)
    {
    if(PlayerToPoint(5.0, playerid, 246.7840,63.9002,1003.6406)) //PD
    {
        SetPlayerPos(playerid, 1552.4479,-1674.9888,16.1953);
    }
    else if(PlayerToPoint(5.0, playerid, 387.7312,173.8142,1008.3828)) //Vjecnica
{
    SetPlayerPos(playerid, 1480.8458,-1770.4805,18.7958);
}

else if(PlayerToPoint(5.0, playerid, 207.7380,-109.0200,1005.1328)) //binco
{
    SetPlayerPos(playerid, 2244.5925,-1663.2600,15.4766);
}

else if(PlayerToPoint(5.0, playerid, 363.4141,-74.5788,1001.5078)) //burg
{
    SetPlayerPos(playerid, 1200.0632,-920.3331,43.1079);
}
return 1;
}


mozete mi reci kako da ja stavim da kad /exit ne budem u interioru :S

ma plzzz clickajte malooo :'(


else if(PlayerToPoint(3.0, playerid,501.980987,-69.150199,998.757812))
         {
             SetPlayerInterior(playerid, 0);
             SetPlayerPos(playerid, 2322.5264,-37.4305,26.4844);
             PlayerInfo[playerid][pInt] = 0;
         }


ovako nesto?
Aequam memento rebus in arduis servare mentem.