Need help with OnPlayerExitVehicle - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with OnPlayerExitVehicle (
/showthread.php?tid=86302)
Need help with OnPlayerExitVehicle -
Jakku - 13.07.2009
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?
Re: Need help with OnPlayerExitVehicle -
Weirdosport - 13.07.2009
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?
Re: Need help with OnPlayerExitVehicle -
abhinavdabral - 13.07.2009
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
Re: Need help with OnPlayerExitVehicle -
Jakku - 13.07.2009
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