01.08.2010, 22:47
Quote:
im using this on my server
pawn Код:
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; } |
You don't need this part:
Quote:
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; |