16.07.2011, 20:52
Hello, I need a system that adds a message to a players screen when he/she enters a vehicle Saying: "Please Drive Not Drive Non RPly"
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Model = GetVehicleModel(vehicleid);
if(Model == 427 && !ispassenger)
{
GetPlayerArmour(playerid, StoreArmour[playerid]);
}
if(PlayerTied[playerid] != 0)
{
ClearAnimations(playerid);
SendClientMessage(playerid,COLOR_LIGHTRED,"You Have Enterd a Vhe");
}
if(PlayerCuffed[playerid] != 0)
{
ClearAnimations(playerid);
}
{
SendClientMessage(playerid,COLOR_LIGHTRED,"Please Drive the way you would In real life to Avoid Admin Jail");
}
return 1;
}
new Vehicle_01;
Vehicle_01 = CreateVehicle(411, 1309.7299, -870.1506, 39.2363, 270.8354, 0, 0, 1000);
if(newstate == 2 || newstate == 3) { new VehicleID = GetPlayerVehicleID(playerid); if(VehicleID == Vehicle_01) { SendClientMessage(playerid, COLOR_YELLOW, " You have entered a vehicle"); } } return 1; }
SendClientMessage(playerid, COLOR_YELLOW,"You have entered a vehicle");