void DeControl(int P, int Flag)
{// Activates or deactivates control for defined player
// P : Player index starting from 0
// Flag : Control flag, 0 = inactive 1 = active
int Player = getplayerproperty(P, "entity");
if (Player != NULL()){
changeentityproperty(Player,"noaicontrol",Flag);
}
}