Zcmd /exit problem
#1

Код:
COMMAND:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 290.7193,-1618.0544,33.1547))
    {
    SetPlayerPos(playerid, 246.2732,112.0255,1003.2188);
    SetPlayerInterior(playerid, 10);
    }
    return 1;
}

COMMAND:exit(playerid,params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2732, 112.0255, 1003.2188))
	{
	SetPlayerPos(playerid, 290.7193, -1618.0544, 33.1547);
	SetPlayerInterior(playerid, 0);
	}
	return 1;
}
This is my code. /enter works great, but /exit doesn't work at all. /exit has no effect, doesn't even say Unknown Command.
Reply
#2

pawn Код:
COMMAND:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 290.7193,-1618.0544,33.1547))
    {
    SetPlayerPos(playerid, 246.2732,112.0255,1003.2188);
    SetPlayerInterior(playerid, 10);
    }
    return 1;
}

COMMAND:exit(playerid,params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2732, 112.0255, 1003.2188))
    {
    SetPlayerPos(playerid, 290.7193, -1618.0544, 33.1547);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
}
Give a try on that might be the position of the code or if not where is the code placed? Is it as a FilterScript or a GameMode?
Reply
#3

It's placed in an interior (universe 10 i think), and the position is the same as where it SetPlayerPos for the /enter..
Reply
#4

pawn Код:
COMMAND:exit(playerid,params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2732, 112.0255, 1003.2188))
    {
        if(GetPlayerInterior(playerid)==10)
        {
            SetPlayerPos(playerid, 290.7193, -1618.0544, 33.1547);
            SetPlayerInterior(playerid, 0);
        }
    }
    return 1;
}
Try this
Reply
#5

Didn't work.. this is actually stumping me.
Reply
#6

Tried moving it aswell, not working, help please!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)