Stay At World Co-ordinates error
#1

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 ?
Reply
#2

[pawn][/pawn] it's not "pawno"
Reply
#3

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

Keep flying as in?
Reply
#5

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;
    }
Reply
#6

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.
Reply
#7

i will try this
Reply
#8

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
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)