SA-MP Forums Archive
Making Admin House - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Making Admin House (/showthread.php?tid=86324)



Making Admin House - Dr_Killer_23 - 13.07.2009

Can you plz tell me how to make a admin house that i dont have to buy just to enter it?


Re: Making Admin House - Gergo1352 - 13.07.2009

pawn Код:
if(strcmp(cmd, "/enterahouse", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (IsPlayerAdmin(playerid))
        {
            SetPlayerPos(playerid, X, Y, Z); // Admin house coordinate
        }
        else
        {
            SendClientMessage(playerid, 0xFFFFFFAA, "You are not an admin!");
        }
    }
    return 1;
}



Re: Making Admin House - Dr_Killer_23 - 13.07.2009

Ty


Re: Making Admin House - Fay-Tony - 25.08.2009

It's an easy script
Nice Gergo.
Szйp script gergő.
Bбr nem annyira bonyorult