08.06.2013, 06:04
Is there a way to determine whether the player pressed the back button or forward button ?
public OnPlayerRequestClass(playerid, classid)
{
static
lastClass[MAX_PLAYERS];
if(classid > lastClass[playerid])
{
// press forward
}
else if(classid < lastClass[playerid])
{
// press backward
}
lastClass[playerid] = classid;
return 1;
}