bool Driving(int PlayerID)
{
if (PlayerID == ACTOR_SELF) PlayerID = SF->getSAMP()->getPlayers()->sLocalPlayerID;
int state;
if (PlayerID == SF->getSAMP()->getPlayers()->sLocalPlayerID)
state = SF->getSAMP()->getPlayers()->pLocalPlayer->pSAMP_Actor->pGTA_Ped->state;
else
state = SF->getSAMP()->getPlayers()->pRemotePlayer[PlayerID]->pPlayerData->pSAMP_Actor->pGTA_Ped->state;
if (state == 50)
return true;
else
return false;
};