17.12.2013, 21:23
Obviously it never gets a chance to call /exit try it like this, it shouldn't exit even though you try because your position won't be fully updated if it does then you'll have to try some other stuff but it should work I would think.
pawn Код:
if( newkeys & KEY_SECONDARY_ATTACK ){
OnPlayerCommandText(playerid, "/enter");
OnPlayerCommandText(playerid, "/exit");
}