02.12.2014, 20:50
hey guys ,
im trying to do in my zombies mode if player reach "evac" (evac = its like safe zone) his name will be on the
5 players that reached evac
picture:
that adding my name if i reach evac but if someone reach after me , that just deleted my name from Player 1..
or i tried it with 3 players, the last one that reached evac just kicked me and player 2 from the list and he was Player 1
im trying to do in my zombies mode if player reach "evac" (evac = its like safe zone) his name will be on the
5 players that reached evac
PHP код:
new PlayerCheck[MAX_PLAYERS];
new Player1;
new Player2;
new Player3;
new Player4;
new Player5;
PHP код:
if(team[playerid] == TEAM_HUMAN && Player1 == 0 && PlayerCheck[playerid] == 0)
{
TextDrawSetString(Evacplayer1,PlayerName(playerid));
Player1 = 1;
PlayerCheck[playerid] = 1;
return 0;
}
if(team[playerid] == TEAM_HUMAN && Player2 == 0 && PlayerCheck[playerid] == 0)
{
TextDrawSetString(Evacplayer2,PlayerName(playerid));
Player2 = 1;
PlayerCheck[playerid] = 1;
return 0;
}
if(team[playerid] == TEAM_HUMAN && Player3 == 0 && PlayerCheck[playerid] == 0)
{
TextDrawSetString(Evacplayer3,PlayerName(playerid));
Player3 = 1;
PlayerCheck[playerid] = 1;
return 0;
}
if(team[playerid] == TEAM_HUMAN && Player4 == 0 && PlayerCheck[playerid] == 0)
{
TextDrawSetString(Evacplayer4,PlayerName(playerid));
Player4 = 1;
PlayerCheck[playerid] = 1;
return 0;
}
if(team[playerid] == TEAM_HUMAN && Player5 == 0 && PlayerCheck[playerid] == 0)
{
TextDrawSetString(Evacplayer5,PlayerName(playerid));
Player5 = 1;
PlayerCheck[playerid] = 1;
return 0;
}
that adding my name if i reach evac but if someone reach after me , that just deleted my name from Player 1..
or i tried it with 3 players, the last one that reached evac just kicked me and player 2 from the list and he was Player 1