05.06.2017, 23:52
Toma essa base que acabei de fazer ae, espero que entenda.
PHP код:
new RotaPlayer[MAX_PLAYERS];
CMD:rota1(playerid)
{
return RotaPlayer[playerid] = 1;
}
CMD:rota2(playerid)
{
return RotaPlayer[playerid] = 2;
}
CMD:rota3(playerid)
{
return RotaPlayer[playerid] = 3;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(RotaPlayer[playerid] == 1)
{
//code
}
else if(RotaPlayer[playerid] == 2)
{
//code
}
else if(RotaPlayer[playerid] == 3)
{
//code
}
return 1;
}