Jump to content

Recommended Posts

Posted

Salutare, am si eu o mica problema  si nu inteleg de ce. Am facut si eu comanda /exit ca sa o pot utiliza la ce fac pe server si am facut-o asa:
 

CMD:exitd(playerid,  params[])
{
    if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1943.1501, 1783.8905, 12.5931) || IsPlayerInRangeOfPoint(playerid, 7.0, 1961.1697, 1774.8444, 12.7437))
        SetPlayerPos(playerid, 1909.4259, 1981.2771, 7.4492);
    return 1;
}

sau

CMD:exitd(playerid,  params[])
{
    if(!(IsPlayerInRangeOfPoint(playerid, 7.0, 1943.1501, 1783.8905, 12.5931) || IsPlayerInRangeOfPoint(playerid, 7.0, 1961.1697, 1774.8444, 12.7437)))
        SetPlayerPos(playerid, 1909.4259, 1981.2771, 7.4492);
    return 1;
}

 

Si cand ma aflu la locatie nu imi merge comanda, dar cand ma indepartez merge. Aveti idee din ce cauza?

Posted

Incearca asa: 

CMD:exitd(playerid,  params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 1943.1501, 1783.8905, 12.5931) || IsPlayerInRangeOfPoint(playerid, 7.0, 1961.1697, 1774.8444, 12.7437))
        SetPlayerPos(playerid, 1909.4259, 1981.2771, 7.4492);
  
    return 1;
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.