Create dynamic checkpoints only for players in race?
#2

Create dynamic pickups only once (in OnGameModeInit) and show/hide them for a player using:
pawn Код:
// visible pickups for player
for (new i; i != sizeof (KartNos); ++i) Streamer_AppendArrayData(STREAMER_TYPE_PICKUP, KartNos[i], E_STREAMER_PLAYER_ID, playerid);
for (new j; j != sizeof (KartBoost); ++j) Streamer_AppendArrayData(STREAMER_TYPE_PICKUP, KartBoost[j], E_STREAMER_PLAYER_ID, playerid);

// not visible pickups for player
for (new i; i != sizeof (KartNos); ++i) Streamer_RemoveArrayData(STREAMER_TYPE_PICKUP, KartNos[i], E_STREAMER_PLAYER_ID, playerid);
for (new j; j != sizeof (KartBoost); ++j) Streamer_RemoveArrayData(STREAMER_TYPE_PICKUP, KartBoost[j], E_STREAMER_PLAYER_ID, playerid);
Reply


Messages In This Thread
Create dynamic checkpoints only for players in race? - by Metharon - 07.06.2015, 10:37
Re: Create dynamic checkpoints only for players in race? - by Konstantinos - 07.06.2015, 11:06
Re: Create dynamic checkpoints only for players in race? - by dusk - 07.06.2015, 11:06
Re: Create dynamic checkpoints only for players in race? - by Metharon - 07.06.2015, 11:27

Forum Jump:


Users browsing this thread: 1 Guest(s)