if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { if(newkeys == 1024 ) { OnPlayerCommandText(playerid, "/robstore"); return 1; } }