06.08.2011, 17:14
pawn Код:
stock youfuncnamme(vehicleid,playerid)
{
new bool:Seat[4];
for(new i;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInVehicle(i,vehicleid))
{
if(GetPlayerVehicleSeat(i) == 0) Seat[0] = true;
if(GetPlayerVehicleSeat(i) == 1) Seat[1] = true;
if(GetPlayerVehicleSeat(i) == 2) Seat[2] = true;
if(GetPlayerVehicleSeat(i) == 3) Seat[3] = true;
}
}
}
for(new a;a<sizeof(Seat);i++)
{
if(Seat[a] == false) PutPlayerInVehicle(playerid,vehicleid,a);
}
return 1;
}