if(newkeys == KEY_NO){ if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { CallLocalFunction("OnPlayerCommandText", "is", playerid, "/enter"); //https://sampwiki.blast.hk/wiki/CallLocalFunction }}