05.11.2013, 10:01
How do i do if If the camera vector is less than -0.4 on where he's looking in userspawn it kicks him?
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
}