Nem teszteltem le, remélem jó
//--------------------------------------------------
// Skin angle
//
// Gamestar 2010
//--------------------------------------------------
#include <a_samp>
new Float:player_old_angle[MAX_PLAYERS];
new player_class_timer[MAX_PLAYERS] = {-1,...};
//--------------------------------------------------
public ClassAngle(playerid);
public ClassAngle(playerid)
{
GetPlayerFacingAngle(playerid, player_old_angle[playerid]);
player_old_angle[playerid] += 1;
SetPlayerFacingAngle(playerid, player_old_angle[playerid]);
}
//--------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
#pragma unused classid
if(player_class_timer[playerid] == -1) {
ClassAngle(playerid);
player_class_timer[playerid] = SetTimerEx(\"ClassAngle\", 50, 1, \"i\", playerid);
}
SetPlayerFacingAngle(playerid, player_old_angle[playerid]);
return 1;
}
//--------------------------------------------------
public OnPlayerSpawn(playerid)
{
if(player_class_timer[playerid] != -1) {
KillTimer(player_class_timer[playerid]);
player_class_timer[playerid] = -1;
}
return 1;
}