SA-MP Forums Archive
Stay At World Co-ordinates error - 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)
+--- Thread: Stay At World Co-ordinates error (/showthread.php?tid=286085)



Stay At World Co-ordinates error - arafa001 - 26.09.2011

Ever Time I Try /ldm command i get that error

pawn Код:
if(!strcmp(cmdtext, "/leavedm", true) || !strcmp(cmdtext, "/ldm", true))
    {
        if(DMZone[playerid] == 0) return SendClientMessage(playerid,COLOR_RED, "ERROR: You Not In DM !");
        DMZone[playerid] = 0;
        SetPlayerPos(playerid, 2495.5647,-1700.7120,1014.7422 );
        return 1;
    }
i successfully leave dm ,, but i keep flying

can some one help me ?


Re: Stay At World Co-ordinates error - Kingunit - 26.09.2011

[pawn][/pawn] it's not "pawno"


Re: Stay At World Co-ordinates error - CmZxC - 26.09.2011

are you sure your teleport commands are using
DMZone[playerid] = 1; When they enter it?


Re: Stay At World Co-ordinates error - IceCube! - 26.09.2011

Keep flying as in?


Re: Stay At World Co-ordinates error - arafa001 - 26.09.2011

Quote:
Originally Posted by CmZxC
Посмотреть сообщение
are you sure your teleport commands are using
DMZone[playerid] = 1; When they enter it?
yes it is

pawn Код:
if(!strcmp(cmdtext, "/dm", true))
    {
            if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "ERROR: You can't use this command in DM!");
            DMZone[playerid] = 1;
            SetPlayerPos(playerid, -1485.2217,307.2930,56.4609);
            SetPlayerWorldBounds(playerid, -1469.4668, -1573.2063, 360.0035,  281.4446);

        GivePlayerWeapon(playerid, 30, 8000);
        GivePlayerWeapon(playerid, 27, 8000);
        return 1;
    }



Re: Stay At World Co-ordinates error - Kingunit - 26.09.2011

pawn Код:
if(!strcmp(cmdtext, "/leavedm", true) || !strcmp(cmdtext, "/ldm", true))
    {
        if(DMZone[playerid] == 0) return SendClientMessage(playerid,COLOR_RED, "ERROR: You Not In DM !");
        DMZone[playerid] = 0;
        SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000.);
        SetPlayerPos(playerid, 2495.5647,-1700.7120,1014.7422 );
        return 1;
    }
You can reset the player world bounds by setting the parameters to 20000.0000, -20000.0000, 20000.0000, -20000.0000.


Re: Stay At World Co-ordinates error - arafa001 - 26.09.2011

i will try this


Re: Stay At World Co-ordinates error - arafa001 - 26.09.2011

Quote:
Originally Posted by Kingunit
Посмотреть сообщение
pawn Код:
if(!strcmp(cmdtext, "/leavedm", true) || !strcmp(cmdtext, "/ldm", true))
    {
        if(DMZone[playerid] == 0) return SendClientMessage(playerid,COLOR_RED, "ERROR: You Not In DM !");
        DMZone[playerid] = 0;
        SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000.);
        SetPlayerPos(playerid, 2495.5647,-1700.7120,1014.7422 );
        return 1;
    }
You can reset the player world bounds by setting the parameters to 20000.0000, -20000.0000, 20000.0000, -20000.0000.
not working


Re: Stay At World Co-ordinates error - Kingunit - 26.09.2011

Quote:
Originally Posted by arafa001
Посмотреть сообщение
not working
What not working? Gettings errors? Still the same like before?


Re: Stay At World Co-ordinates error - arafa001 - 26.09.2011

still like before ....................