Importantt - 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: Importantt (
/showthread.php?tid=473922)
Importantt -
Danialdano - 05.11.2013
How do i do if If the camera vector is less than -0.4 on where he's looking in userspawn it kicks him?
Re: Importantt -
Danialdano - 05.11.2013
Bumpidy bumpp
Re: Importantt -
Danialdano - 05.11.2013
Seriously? nobody knows how
Re: Importantt -
Kaperstone - 05.11.2013
GetPlayerCameraFrontVector
Hope it helped somehow.
Re: Importantt -
Danialdano - 05.11.2013
Still didnt understand anything give me an example of if player is looking at -0.4 please
Re: Importantt -
Kaperstone - 05.11.2013
pawn Код:
new Float:vectorx,
Float:vectory,
Float:vectorz;
GetPlayerCameraFrontVector(playerid,vectorx,vectory,vectorz);
if(vectorz <= -0.4) { // if his camera is pointing down
// Some code here
}
if(vectory <= -0.4) {
// Some code here
}
if(vectorx <= -0.4) {
// Some code here
}