04.08.2015, 17:42
Yo
I just gotta set players slot in event. I did it like that but i totally sucks and dont work properly, should use loop but how exactly i got no idea.
Anyone?
I just gotta set players slot in event. I did it like that but i totally sucks and dont work properly, should use loop but how exactly i got no idea.
Anyone?
Код:
if(Player0[0] == -1)
{
Player0[0] = playerid;
}else if(Player1[0] == -1)
{
Player1[0] = playerid;
}else if(Player2[0] == -1)
{
Player2[0] = playerid;
}else if(Player3[0] == -1)
{
Player3[0] = playerid;
}else if(Player4[0] == -1)
{
Player4[0] = playerid;
}else if(Player5[0] == -1)
{
Player5[0] = playerid;
}else if(Player6[0] == -1)
{
Player6[0] = playerid;
}else if(Player7[0] == -1)
{
Player7[0] = playerid;
}else
{
//no slots info
}

