Importantt
#1

How do i do if If the camera vector is less than -0.4 on where he's looking in userspawn it kicks him?
Reply
#2

Bumpidy bumpp
Reply
#3

Seriously? nobody knows how
Reply
#4

GetPlayerCameraFrontVector
Hope it helped somehow.
Reply
#5

Still didnt understand anything give me an example of if player is looking at -0.4 please
Reply
#6

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
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)