SA-MP Forums Archive
Help me :)! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me :)! (/showthread.php?tid=254200)



Help me :)! - lsrgta - 09.05.2011

pawn Код:
if(strcmp(cmdtext,"/assassinenter",true) == 0)
    {
        if (IsPlayerInRangeOfPoint(playerid,3,953.2938,-910.3906,45.7656))
        {
            SetPlayerPos(playerid,452.489990,-18.179698,1001.132812);
            SetPlayerInterior(playerid,1);
        }
        return 1;
    }

    if(strcmp(cmdtext,"/assassinexit",true) == 0)
    {
        if (IsPlayerInRangeOfPoint(playerid,3,452.489990,-18.179698,1001.132812))
        {
            SetPlayerPos(playerid,953.2938,-910.3906,45.7656);
            SetPlayerInterior(playerid,0);
        }
        return 1;
    }

Can someone change the interior to
pawn Код:
Welcome pump    1   681.557861,-455.680053,-25.609874



Re: Help me :)! - marrcko - 09.05.2011

pawn Код:
if(strcmp(cmdtext,"/assassinenter",true) == 0)
    {
        if (IsPlayerInRangeOfPoint(playerid,3,953.2938,-910.3906,45.7656))
        {
            SetPlayerInterior(playerid,1);
            SetPlayerPos(playerid,681.557861,-455.680053,-25.609874);
           }
        return 1;
    }

    if(strcmp(cmdtext,"/assassinexit",true) == 0)
    {
        if (IsPlayerInRangeOfPoint(playerid,3,681.557861,-455.680053,-25.609874))
        {
            SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,953.2938,-910.3906,45.7656);
        }
        return 1;
    }