SA-MP Forums Archive
Vehicle Streamer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle Streamer (/showthread.php?tid=98757)



Vehicle Streamer - Mike Garber - 22.09.2009

How do i Use the new Vehicle Streamer?
I have read the SA:MP wiki but I don't understand much of it :S

Can someone explain It for me?


My gamemode does currently use a function scripted,
that can be called,
Like;

Код:
UnlockLSPDCars(playerid)
{
  SetVehicleParamsForPlayer(1, playerid, 0, 0);
  SetVehicleParamsForPlayer(2, playerid, 0, 0);
  SetVehicleParamsForPlayer(3, playerid, 0, 0);
  SetVehicleParamsForPlayer(4, playerid, 0, 0);
  SetVehicleParamsForPlayer(5, playerid, 0, 0);
  SetVehicleParamsForPlayer(6, playerid, 0, 0);
  SetVehicleParamsForPlayer(7, playerid, 0, 0);
  SetVehicleParamsForPlayer(8, playerid, 0, 0);
  SetVehicleParamsForPlayer(9, playerid, 0, 0);
  SetVehicleParamsForPlayer(10, playerid, 0, 0);
  SetVehicleParamsForPlayer(11, playerid, 0, 0);
  SetVehicleParamsForPlayer(12, playerid, 0, 0);
  SetVehicleParamsForPlayer(13, playerid, 0, 0);
  SetVehicleParamsForPlayer(14, playerid, 0, 0);
  SetVehicleParamsForPlayer(15, playerid, 0, 0);
  SetVehicleParamsForPlayer(212, playerid, 0, 0);
  SetVehicleParamsForPlayer(213, playerid, 0, 0);
  SetVehicleParamsForPlayer(214, playerid, 0, 0);
  SetVehicleParamsForPlayer(215, playerid, 0, 0);
  SetVehicleParamsForPlayer(216, playerid, 0, 0);
  SetVehicleParamsForPlayer(217, playerid, 0, 0);
  SetVehicleParamsForPlayer(218, playerid, 0, 0);
}
How do I tell the streamer to;
Код:
if(gteam[playerid] == Team_LSPD) {
UnlockLSPDCars(playerid);
return 1;
}
If you understand what I mean, maybe that will work? Or?



Re: Vehicle Streamer - Jasen - 23.09.2009

Put

Код:
if(gteam[playerid] == Team_LSPD) {
UnlockLSPDCars(playerid);
return 1;
}
in the OnVehicleStreamIn Callback


Re: Vehicle Streamer - Mike Garber - 23.09.2009

So that WILL work?


Re: Vehicle Streamer - FUNExtreme - 23.09.2009

That WILL work