05.12.2008, 20:49
im using this on my server
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;
}
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;
}
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;
}