Add more types - 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)
+--- Thread: Add more types (
/showthread.php?tid=577057)
Add more types -
Jennifer - 08.06.2015
If I got this script
if(IsACopCar(newcar))
{
if(type == 1)
{
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Only LSPD and FBI got keys for this");
ClearAnimations(playerid);
}
How Can I add type 2 as well, so it type 1 and 2 that can use it.
Re: Add more types -
SNAKE12 - 08.06.2015
Код:
if(IsACopCar(newcar))
{
if(type == 1)
{
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Only LSPD and FBI got keys for this");
ClearAnimations(playerid);
}
if(type == 2)
{
//code
}
else
{
//code
}
}//this is for if(IsACopCar(newcar))