Interior
#1

How can i make a command for the player which on interior 1, interior 2 or whatever??
I mean when the player on interior 1 and he typed /out it teleport him to specific place.
Reply
#2

pawn Код:
CMD:out(playerid, params[])
{
    SetPlayerPos(playerid, x, y, z); Set your coords at x, y & z.
    SetPlayerInterior(playerid, 0);
    return 1;
}
Reply
#3

I know that it's very easy i mean the interior if the player in interior 1 he can use this command else he can't
Reply
#4

Use this to check if the player is in an interior, so that he can use this command. https://sampwiki.blast.hk/wiki/GetPlayerInterior
Reply
#5

pawn Код:
if(GetPlayerInterior(playerid) == 1)
{
    SetPlayerPos(playerid, 0, 0, 0);
}
Reply
#6

BigGroter thanks man REP+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)