Press "enter" to /enter a building.
#2

im using this on my server

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_ENTER)
    {
        if(PlayerToPoint(3.9,playerid,2019.7307,1916.2554,12.3333))
         {
                    SetPlayerPos(playerid, 1441.3934,-5953.5630,151.5722);
                    GameTextForPlayer(playerid, "~b~Aby opuscic arene wpisz ~n~~r~ /wyjdz", 3000, 3);
                    SetPlayerTime(playerid, 22,59);
                    ResetPlayerWeapons(playerid);
                    GivePlayerWeapon(playerid, 16, 10);
                    GivePlayerWeapon(playerid, 46, 1);
                    GivePlayerWeapon(playerid, 4, 10);
                    GivePlayerWeapon(playerid, 16, 10);
                    GivePlayerWeapon(playerid, 26, 900);
                    GivePlayerWeapon(playerid, 31, 900);
                    GivePlayerWeapon(playerid, 34, 500);
                    SetPlayerHealth(playerid, 100);
                    ondm[playerid] = 1;
                    return 1;
          }
//-------------------MORE

//-------------------MORE  
}
    return 0;
}
Just Change the position where it will teleport you froom
its this line

if(PlayerToPoint(3.9,playerid,2019.7307,1916.2554,12.3333))

for the more teleports bit just paste this

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_ENTER)
{
if(PlayerToPoint(3.9,playerid,2019.7307,1916.2554, 12.3333))
{
SetPlayerPos(playerid, 1441.3934,-5953.5630,151.5722);
GameTextForPlayer(playerid, "~b~Aby opuscic arene wpisz ~n~~r~ /wyjdz", 3000, 3);
SetPlayerTime(playerid, 22,59);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 46, 1);
GivePlayerWeapon(playerid, 4, 10);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 26, 900);
GivePlayerWeapon(playerid, 31, 900);
GivePlayerWeapon(playerid, 34, 500);
SetPlayerHealth(playerid, 100);
ondm[playerid] = 1;
return 1;
}
if(PlayerToPoint(3.9,playerid,2019.7307,1916.2554, 12.3333))
{
SetPlayerPos(playerid, 1441.3934,-5953.5630,151.5722);
GameTextForPlayer(playerid, "~b~Aby opuscic arene wpisz ~n~~r~ /wyjdz", 3000, 3);
SetPlayerTime(playerid, 22,59);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 46, 1);
GivePlayerWeapon(playerid, 4, 10);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 26, 900);
GivePlayerWeapon(playerid, 31, 900);
GivePlayerWeapon(playerid, 34, 500);
SetPlayerHealth(playerid, 100);
ondm[playerid] = 1;
return 1;
}

}
return 0;
}
Reply


Messages In This Thread
Press "enter" to /enter a building. - by .:*Starstrike*:. - 05.12.2008, 20:45
Re: Press "enter" to /enter a building. - by Pawel_Shark - 05.12.2008, 20:49
Re: Press "enter" to /enter a building. - by .:*Starstrike*:. - 05.12.2008, 20:50
Re: Press "enter" to /enter a building. - by Pawel_Shark - 05.12.2008, 20:52
Re: Press "enter" to /enter a building. - by yom - 05.12.2008, 20:53
Re: Press "enter" to /enter a building. - by .:*Starstrike*:. - 05.12.2008, 20:54
Re: Press "enter" to /enter a building. - by Pawel_Shark - 05.12.2008, 21:00
Re: Press "enter" to /enter a building. - by Unte99 - 01.08.2010, 22:47
Re: Press "enter" to /enter a building. - by Daren_Jacobson - 02.08.2010, 01:24

Forum Jump:


Users browsing this thread: 1 Guest(s)