24.01.2011, 09:14
I changed the code a little it should work if not sorry.
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(GetVehicleModel(vehicleid) == 520)
{
if(!IsPlayerAdmin(playerid))
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
SendClientMessage(playerid, 0xff0000FF, "Only admin can fly hydra's");
}
}
return 1;
}