Need help with OnPlayerExitVehicle
#1

How I can make this: When player leaves a vehicle with variable b1 (
pawn Код:
b1 = CreateVehicle(411,-1970.1052,301.2314,34.9060,87.6584,112,1, 1900);//Infernus
, he gets a message. You have left a vehicle?

I tried one, but it shows it in all vehicles. How to make it that message shows for only when exiting vehicle b1?
Reply
#2

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
  if(vehicleid == b1) SendClientMessage(playerid, 0xFF00FFFF, "You left the vehicle (noob)");
  return 1;
}
I can't imagine what you were doing wrong?
Reply
#3

Paste this under OnPlayerExitVehicle
pawn Код:
if(vehicleid==b1) SendClientMessage(playerid, 0xAABBCCFF, "You have left a vehicle?");
I hope, that this will help......I guess you were talking about this...

Thank You
-Abhinav
Reply
#4

Quote:
Originally Posted by Weirdosport
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
  if(vehicleid == b1) SendClientMessage(playerid, 0xFF00FFFF, "You left the vehicle (noob)");
  return 1;
}
I can't imagine what you were doing wrong?
Just this, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)