16.10.2011, 20:45
Hey I'm trying to make my NPC talk when a person enters its vehicle can someone correct this script for me I use it and it doesnt work
Please help Thanks.
Oh! I forgot to add that I put that script extract in the NPC filterscript i created
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new seatno;
new VehID;
VehID = GetPlayerVehicleID(playerid);
seatno = GetPlayerVehicleSeat(playerid);
if(VehID > Taxi){
if(seatno > 1) return SendClientMessage(playerid, 0xFFFFFFFF ," I am Driveress. I take you to all the airports in San Andreas. My driiving skill was based on an NRG-500. That is why I might drive poorly.");
if(seatno > 2) return SendClientMessage(playerid, 0xFFFFFFFF ," I am Driveress. I take you to all the airports in San Andreas. My driiving skill was based on an NRG-500. That is why I might drive poorly.");
if(seatno > 3) return SendClientMessage(playerid, 0xFFFFFFFF ," I am Driveress. I take you to all the airports in San Andreas. My driiving skill was based on an NRG-500. That is why I might drive poorly.");
if(seatno > 0) return SetPlayerHealth(playerid, 0); SendClientMessage(playerid, 0xFFFFFF, "How can you jack an NPC's CAR?!"); PutPlayerInVehicle(0, Taxi, 0);
}
return 1;
}
Oh! I forgot to add that I put that script extract in the NPC filterscript i created