SA-MP Forums Archive
enter command - 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: enter command (/showthread.php?tid=385526)



enter command - Mustafa6155 - 16.10.2012

please help i can't enter an place with my /enter /exit command i have Gagi's hous i can't enter it!


PLease help me can u help me too with port forward
i got PFconfig and <removed> i maked an me ip4 is <removed> but me frend's can't enter only me and me bro


Re: enter command - Abhishek. - 16.10.2012

ask this in the Gagi House System Topic (i mean the one in which it was released)
if its with the Gagi Houses or else ask someone to make you a Enter and exit command in script request therad


Re: enter command - Roel - 16.10.2012

pawn Код:
YCMD:enter(playerid, params[], help)
{
        #pragma unused params
        #pragma unused help
        new h = GetClosetHouseID(playerid);
        if(h == -1) return SCM(playerid,COLOR_RED,"EROR: "COL_WHITE"There is no house.");
        if(House[h][On_Sell] == 0 && House[h][Lock] == 0)
        {
            SetPlayerPos(playerid,House[h][ExitX],House[h][ExitY],House[h][ExitZ]);
            SetPlayerInterior(playerid,House[h][IntID]);
            SetPlayerVirtualWorld(playerid,House[h][VW]);
        }
        else return SCM(playerid,COLOR_RED,"EROR: "COL_WHITE"House is locked/Is not on sale.");
        if(strcmp(House[h][Owner],GetName(playerid),false) == 0)
        {
        new Year, Month, Day;
        getdate(Year, Month, Day);
        House[h][DayEnter] = Day;
        House[h][MonthEnter] = Month;
        CheckHouse(h);
        }
        return 1;
}
YCMD:exit(playerid, params[], help)
{
        #pragma unused params
        #pragma unused help
        new h = GetClosetHouseIntID(playerid);
        if(h == -1) return SCM(playerid,COLOR_RED,"EROR: "COL_WHITE"There is no house.");
        SetPlayerPos(playerid,House[h][EnterX],House[h][EnterY],House[h][EnterZ]);
        SetPlayerInterior(playerid,0);
        SetPlayerVirtualWorld(playerid,0);
        return 1;
}



AW: enter command - Mustafa6155 - 16.10.2012

Roel where add this?