SA-MP Forums Archive
Question - 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: Question (/showthread.php?tid=504301)



Question - Kyance - 03.04.2014

Can you create an "AC-130" or something like that with the " https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector " feature?

Like,
OnPlayerKeyStateChange
blabla
if(newkeys & KEY_FIRE && InAC130[playerid])
{
//Stuff from wiki
}
return 1;
}

etc..
Or something close to that, would that work?;d


Re: Question - ashleymeah - 03.04.2014

You would use GetPlayerVehicleID(); and GetVehicleModel(); in an for loop to check if the player is in an certain vehicle or not.

There is another thread like this here.