Textdraw List |Help|
#1

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
PHP код:
new PlayerCheck[MAX_PLAYERS];
new 
Player1;
new 
Player2;
new 
Player3;
new 
Player4;
new 
Player5
PHP код:
if(team[playerid] == TEAM_HUMAN && Player1 == && PlayerCheck[playerid] == 0)
    {
    
TextDrawSetString(Evacplayer1,PlayerName(playerid));
 
Player1 1;
 
PlayerCheck[playerid] = 1;
 return 
0;
    }
    if(
team[playerid] == TEAM_HUMAN && Player2 == && PlayerCheck[playerid] == 0)
    {
    
TextDrawSetString(Evacplayer2,PlayerName(playerid));
 
Player2 1;
 
PlayerCheck[playerid] = 1;
 return 
0;
    }
    
if(
team[playerid] == TEAM_HUMAN && Player3 == && PlayerCheck[playerid] == 0)
    {
    
TextDrawSetString(Evacplayer3,PlayerName(playerid));
 
Player3 1;
 
PlayerCheck[playerid] = 1;
return 
0;
    }
if(
team[playerid] == TEAM_HUMAN && Player4 == && PlayerCheck[playerid] == 0)
    {
    
TextDrawSetString(Evacplayer4,PlayerName(playerid));
 
Player4 1;
 
PlayerCheck[playerid] = 1;
 return 
0;
    }
if(
team[playerid] == TEAM_HUMAN && Player5 == && PlayerCheck[playerid] == 0)
    {
    
TextDrawSetString(Evacplayer5,PlayerName(playerid));
 
Player5 1;
 
PlayerCheck[playerid] = 1;
 return 
0;
    } 
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
Reply


Messages In This Thread
Textdraw List |Help| - by s0ZNIz - 02.12.2014, 20:50
Re: Textdraw List |Help| - by iiNzTicTx - 02.12.2014, 21:00
Re: Textdraw List |Help| - by s0ZNIz - 03.12.2014, 04:12
Re: Textdraw List |Help| - by Galletziz - 03.12.2014, 04:44
Re: Textdraw List |Help| - by s0ZNIz - 03.12.2014, 13:13
Re: Textdraw List |Help| - by s0ZNIz - 03.12.2014, 15:50
Re: Textdraw List |Help| - by Galletziz - 03.12.2014, 16:11
Re: Textdraw List |Help| - by s0ZNIz - 03.12.2014, 16:34
Re: Textdraw List |Help| - by Galletziz - 03.12.2014, 16:39
Re: Textdraw List |Help| - by s0ZNIz - 03.12.2014, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)