SA-MP Forums Archive
Scripter Need's help! - 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: Scripter Need's help! (/showthread.php?tid=128915)



Scripter Need's help! - [LSR]State_Trooper - 20.02.2010

Ok, Now most scripter would say to me " ohh your a scripter yuo should know or work it out " etc etc.

My problem is that I want a message displayed to someone when they enter a vehicle. This is a test code I made.


Код:
if (GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 ||
		GetVehicleModel(vehicleid) == 596 )
	{
		SendClientMessage(playerid,COLOR_YELLOW, "Type - ( LS Exempt ) ");
		SendClientMessage(playerid,COLOR_GREY, "Reg.: Los Santos Metro Police Department");
	 }
return 1;
}
How ever, It dosnt work. Any help would b appreciated.


Re: Scripter Need's help! - Finn - 20.02.2010

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 596)
{
  SendClientMessage(playerid, COLOR_YELLOW, "Type - ( LS Exempt ) ");
  SendClientMessage(playerid, COLOR_GREY, "Reg.: Los Santos Metro Police Department");
}



Re: Scripter Need's help! - [LSR]State_Trooper - 20.02.2010

Dosn't work, I didnt put it under anythign specific, Should I have. My no driver's license warning works tho......


Re: Scripter Need's help! - [LSR]State_Trooper - 20.02.2010

Fixed it, Just gotta work out how to lock it form the Team_Civ and not Team_LSPD ?? Any Ideas??