PHP Code:
new CreateHealth[MAX_PLAYERS];
new string[256];
new Float:healthteleportion;
GetPlayerHealth(playerid,healthteleportion);
if(PlayerInfo[playerid][Level] == 1 && healthteleportion < 70.0) return CreateHealth[playerid]=70,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 2 && healthteleportion < 65.0)return CreateHealth[playerid]=65,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 3 && healthteleportion < 60.0)return CreateHealth[playerid]=60,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 4 && healthteleportion < 55.0)return CreateHealth[playerid]=55,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 5 && healthteleportion < 50.0) return CreateHealth[playerid]=50,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 6 && healthteleportion < 45.0)return CreateHealth[playerid]=45,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 7 && healthteleportion < 40.0)return CreateHealth[playerid]=40,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 8 && healthteleportion < 35.0)return CreateHealth[playerid]=35,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 9 && healthteleportion < 30.0)return CreateHealth[playerid]=30,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 10 && healthteleportion < 25.0)return CreateHealth[playerid]=25,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 11 && healthteleportion < 20.0)return CreateHealth[playerid]=20,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 12 && healthteleportion < 15.0)return CreateHealth[playerid]=15,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 13 && healthteleportion < 10.0)return CreateHealth[playerid]=10,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);
if(PlayerInfo[playerid][Level] == 14 && healthteleportion < 5.0)return CreateHealth[playerid]=5,format(string, sizeof(string), "you are need at least %d to teleport",CreateHealth[playerid]),SendClientMessage(playerid, red, string);