Vehicle Streamer
#1

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?
Reply
#2

Put

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

So that WILL work?
Reply
#4

That WILL work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)