26.01.2010, 20:07
Hi.
This is my script and it is inside a timer so when a player requesting class his angel will be moved. But my problem is that his Angel only movves once and then nothing more. Like from angel 0 to 90 and than it stops. Could anyone help me solve this script, thanks
This is my script and it is inside a timer so when a player requesting class his angel will be moved. But my problem is that his Angel only movves once and then nothing more. Like from angel 0 to 90 and than it stops. Could anyone help me solve this script, thanks
pawn Код:
GetPlayerFacingAngle(playerid,Angel);
if(Angel == 0.0){
SetPlayerFacingAngle(playerid,90.0);
return 1;
}
else if(Angel == 90.0){
SetPlayerFacingAngle(playerid,180.0);
return 1;
}
else if(Angel == 180.0){
SetPlayerFacingAngle(playerid,270.0);
return 1;
}
else if(Angel == 270.0){
SetPlayerFacingAngle(playerid,360.0);
return 1;
}
else if(Angel == 360.0){
SetPlayerFacingAngle(playerid,0.0);
return 1;
}