SA-MP Forums Archive
pick up icon - 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: pick up icon (/showthread.php?tid=172839)



pick up icon - [Lsrcr]Rafa - 31.08.2010

ok guys can some one tell me how to create pickup (green house) and when i will enter in it to write (/enterh to enter in the house) and to enter in the house... sorry for bed english...
Please help !


Re: pick up icon - Fredden1993 - 31.08.2010

Well, first you need a /enter command, like this one:

pawn Код:
if(strcmp(cmd, "/enter", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerToPoint(3.0,playerid, 1552.8628,-1675.5975,16.1953)) //Change this coordinates to your exterior door to the house
            {
                SetPlayerPos(playerid, 246.7840,63.9005,1003.6406); //Change this coordinates to your interior door to the house
                SetPlayerFacingAngle(playerid, 0.0000); //Also change the facing angle if you want
                SetPlayerInterior(playerid, 6); //Change the interior ID
                SetCameraBehindPlayer(playerid);
            }
        }
        return 1;
    }
Just change the coordinates to the house exterior door and the interior ID.


Re: pick up icon - [Lsrcr]Rafa - 31.08.2010

ok and
I need /enterh command and when ill tupe that in that pick up to teleport the player in the house


Re: pick up icon - Fredden1993 - 31.08.2010

Quote:
Originally Posted by [Lsrcr]Rafa
Посмотреть сообщение
ok and
I need /enterh command and when ill tupe that in that pick up to teleport the player in the house
/enter and /enterh is the same, just change my example to what you want it to be...

Here you can read about how to create a pickup to your house: https://sampwiki.blast.hk/wiki/CreatePickup


Re: pick up icon - [Lsrcr]Rafa - 31.08.2010

ok i know that man but when ill be in that pick up just than to enter not when am out do u understand ? :S